Hi,all
I found form data is missing through Netscape. I wrote a simple code to test. The code is working fine in IE. But Netscape still keep telling me your form data is missing and my form data can't be displayed properly.
I don't know the reason. Is it about cache or something else?
Here is the code
netscape.php
<?
print "<table><tr><td>";
print "</td></tr><tr><td> You can choose from these assessment types:</td></tr>";
print "<form method = 'post' action = 'netscape.php?display=no'>";
print "<tr><td><input type = 'radio' name='random' value='test'>Random objective tests</td></tr>";
print "<tr><td><input type = 'radio' name='random' value='norandom'>NO random objective tests</td></tr>";
print "<tr><td><input type ='submit' name = 'submit' value='Next Step'></td></tr>";
print "</form></table>";
if ($submit == "Next Step"){
if ($display == "no")
{
if ($random == "")
{
print "<a href = '$PHP_SELF'>Please go back choose the option</a>";
}
if ($random == "test")
{
print "<form method='post' action=''>";
print "<table><tr><td>How many random questions to display</td></tr>";
print "<tr><td><input type ='text' name='number' value=''></td></tr>";
print "<tr><td><input type ='submit' name='submit' value='Preview tests'></td></tr>";
print "</form>";
}
if ($random == "norandom")
{
print "<form method='post' action=''>";
print "<table><tr><td>How many questions to display</td></tr>";
print "<tr><td><input type ='text' name='number' value=''></td></tr>";
print "<tr><td><input type ='submit' name='submit' value='Preview test'></td></tr></table>";
print "</form>";
}
}
}
?>