elie-palima
Member
Posted 1 year 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/
gjsmith66
Member
Plugin Author
Posted 1 year ago #
Can you give me some more details, is this a form in the Post content?
brmecham
Member
Posted 1 year 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?
brmecham
Member
Posted 1 year ago #
actually, I just figured out a new way:
<?php echo $_COOKIE['ref']; ?>
Replace ref with whatever your cookie parameter is.