veluit06 Posted December 23, 2008 Share Posted December 23, 2008 any body tel me please following scripts are correct r wrong <?php $expire=time()+60*60*24*30; setcookie("mylink", "http://www.kickvirus.com", $expire); ?> above script is for store a cookie <?php if (isset($_COOKIE["mylink"])) echo "Welcome " . $_COOKIE["mylink"] . "!<br />"; else echo "Welcome guest!<br />"; ?> above script for welcome a cookie value but i have to store this welcome cookie value inside my browser addressbar how can i do any body help me plz Quote Link to comment https://forums.phpfreaks.com/topic/138110-please-check-my-cookie-script/ 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.