TeddyKiller Posted May 31, 2010 Share Posted May 31, 2010 I want to place a Javascript Cookies value into a textbox, and I can't find any articles about it. Any help? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/203427-placing-javascript-cookie-value-into-a-textbox/ Share on other sites More sharing options...
Adam Posted June 2, 2010 Share Posted June 2, 2010 Are you wanting to do this on an event? If not it would be much easier to do using PHP: <input type="text" name=".." value="<?php if (!empty($_COOKIE['cookie_name'])) echo $_COOKIE['cookie_name']; ?>" /> Quote Link to comment https://forums.phpfreaks.com/topic/203427-placing-javascript-cookie-value-into-a-textbox/#findComment-1066567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.