i8grand Posted April 22, 2010 Share Posted April 22, 2010 I have created a form: "<form style=\"display:inline\" action=\"playSaved.php\" method=\"post\">\n ". "<input type=\"hidden\" name=\"thisPuzzle\" value=\"" . $dbRow[0] . "\">\n ". "<input type=\"submit\" value=\"Play\">\n " . "</form>". which works fine as it is but I now want thisPuzzle to be a session variable. I was wondering if this was possible to do. I already have a set of session variables used on each page and I am looking to add this to them for playSaved.php. thanks Link to comment https://forums.phpfreaks.com/topic/199390-creating-a-new-session-variable/ Share on other sites More sharing options...
Pikachu2000 Posted April 22, 2010 Share Posted April 22, 2010 I believe this is what you mean. $_SESSION['thisPuzzle'] = $dbRow['0']; Link to comment https://forums.phpfreaks.com/topic/199390-creating-a-new-session-variable/#findComment-1046432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.