I am trying to create a online test application,and invoking question with options on one page. At the end of the test i want to publish score on another page. For that i want all form data on another page, do u hav any idea to get that?
<form name="test" method ="post" action="testfinish.php">
<input type="submit" name="endtest" value="End Test"/>
<?php
$count=4;
$que = array();
$que = $userObj->getQue($count);
$_SESSION['count']=$count;
foreach($que as $q){ ?>
<br>
<div style = "border:2px solid;">
<div style = "border:2px solid;"><?php echo $q['que']?></div><br>
<ol>
<li><input type = "radio" name = "<?php echo $q['que_id']?>" value = "<?php echo $q['a']?>" /> <?php echo $q['a']?></li>
<li><input type = "radio" name = "<?php echo $q['que_id']?>" value = "<?php echo $q['b']?>" /> <?php echo $q['b']?></li>
<li><input type = "radio" name = "<?php echo $q['que_id']?>" value = "<?php echo $q['c']?>" /> <?php echo $q['c']?></li>
<li><input type = "radio" name = "<?php echo $q['que_id']?>" value = "<?php echo $q['d']?>" /> <?php echo $q['d']?></li>
</ol></div>
<?php } ?>
</form>
Use $_REQUEST
In
testfinish.php,just useYou will find the name of the button in the
$_REQUESTMore info here