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

  1. elie-palima
    Posted 4 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?

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


    how do i do this?


  2. gjsmith66
    Plugin Author

    Posted 3 years ago #

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

  3. brmecham
    Posted 3 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
    Posted 3 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

  • Cookie Monster
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic