mattm1712 Posted May 7, 2012 Share Posted May 7, 2012 <? $name = $_GET['name']; $game2 = "2": setcookie('game_".$name."',$game2, time()+3600); ?> would this work? if not how can it be done? cheers matt Quote Link to comment https://forums.phpfreaks.com/topic/262218-set-a-cookie-with-variable-name/ Share on other sites More sharing options...
xyph Posted May 7, 2012 Share Posted May 7, 2012 http://php.net/manual/en/language.types.string.php#language.types.string.parsing Quote Link to comment https://forums.phpfreaks.com/topic/262218-set-a-cookie-with-variable-name/#findComment-1343772 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.