WordPress.org

Ready to get started?Download WordPress

Forums

Cookie Monster
how do I use cookie monster on a form? (4 posts)

  1. elie-palima
    Member
    Posted 2 years ago #

    how can I use cookie monster on a form?

    I'm trying to retain a value from a page and thought this is a good solution

    but shortcodes don't work in there. help please?

    <form>
    <input type="hidden" value="[cookie monster code]">
    </form>

    ??

    how do i do this?

    http://wordpress.org/extend/plugins/cookiemonster/

  2. gjsmith66
    Member
    Plugin Author

    Posted 2 years ago #

    Can you give me some more details, is this a form in the Post content?

  3. brmecham
    Member
    Posted 2 years ago #

    I used to be able to pass the cookie value into a form field by placing this inside the field value:

    <?php echo $_COOKIE[get_option('cookie_param1')]; ?>

    But now I can't get that to work. Any ideas?

  4. brmecham
    Member
    Posted 2 years ago #

    actually, I just figured out a new way:

    <?php echo $_COOKIE['ref']; ?>

    Replace ref with whatever your cookie parameter is.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic