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 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 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
Archived
This topic is now archived and is closed to further replies.