skeezmo Posted April 23, 2006 Share Posted April 23, 2006 I have an equality survey with multiple stages. These stages seem to be in the way of the data selected being put to variables. I have tried to implement as best I can the way to save the data to a variable with only one page of options, but this has truly stumped me. Does anyone here know how exactly I would go about doing this? Hess PS : The code is extremely long, so I have put it on this separate page as not to clutter up the forum. [a href=\"http://68.230.58.109:916/aero/source.txt\" target=\"_blank\"]Source Code[/a] You can also view the page if you wish here : [a href=\"http://68.230.58.109:916/aero/survey.php\" target=\"_blank\"]http://68.230.58.109:916/aero/survey.php[/a] Link to comment https://forums.phpfreaks.com/topic/8205-survey-help/ Share on other sites More sharing options...
kenrbnsn Posted April 24, 2006 Share Posted April 24, 2006 You want to use sessions.At the start of each script, put the code [code]<?php session_start(); ?>[/code]Whenever you want to store a variable, use [code]<?php $_SESSION['some_var'] = $some_var; ?>[/code]When you want to use a value stored in the session array, you can either assign it to a variable [code]<?php $some_var = $_SESSION['some_var'] ?>[/code] or use it directly, as in [code]<?php echo $_SESSION['var']; ?>[/code]Ken Link to comment https://forums.phpfreaks.com/topic/8205-survey-help/#findComment-30125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.