Hi all!
I'm pretty new to PHP but have been tasked to design an online survey. However, the survey consists of close to 100 questions, so I'm breaking them up into bite-sized pages with about 10 questions per page.
What I need to do is to pass the information from one page to another but I cannot seem to grasp the syntax for the sessions.
Would really appreciate it if someone could correct my syntax or give me a suggestion on a better way to do this.
This is what I have
<?php
session_start();
?>
<html>
<head><title>Testing Sessions Page 1</title></head>
<body>
<?php
$_SESSION['session_var']="$radiobutton";
?>
<form name="form1" method="post" action="">
<table width="750" border="0">
<tr>
<td><font size="-1" face="Arial, Helvetica, sans-serif">1. We have a system
to measure customer satisfaction.</font></td>
<td width="25"><input type="radio" name="radiobutton" value="1"></td>
<td width="25"><input type="radio" name="radiobutton" value="2"></td>
<td width="25"><input type="radio" name="radiobutton" value="3"></td>
<td width="25"><input type="radio" name="radiobutton" value="4"></td>
<td width="25"><input type="radio" name="radiobutton" value="5"></td>
<td width="25"><input type="radio" name="radiobutton" value="6"></td>
</tr>
</table>
</form>
</body></html>