I'm trying to create a quiz and i can't think of a way to display the answers randomly.
<tr>
<td valign="middle" bgcolor="#00CCFF"><div align="center">
<form id="form1" name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
<input name="answer" type="hidden" value="<?php echo $answer1; ?>" />
<a href="javascript:document.form1.submit()"><?php echo $answer1; ?></a>
</form>
</div></td>
<td valign="middle" bgcolor="#00CCFF"><div align="center">
<form id="form1" name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
<input name="answer" type="hidden" value="<?php echo $answer2; ?>" />
<a href="javascript:document.form1.submit()"><?php echo $answer2; ?></a>
</form>
</div></td>
</tr>
<tr>
<td valign="middle" bgcolor="#00CCFF"><div align="center">
<form id="form1" name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
<input name="answer" type="hidden" value="<?php echo $answer3; ?>" />
<a href="javascript:document.form1.submit()"><?php echo $answer3; ?></a>
</form>
</div></td>
<td valign="middle" bgcolor="#00CCFF"><div align="center">
<form id="form1" name="form1" method="post" action="<?php $_SERVER['PHP_SELF'] ?>">
<input name="answer" type="hidden" value="<?php echo $answer4; ?>" />
<a href="javascript:document.form1.submit()"><?php echo $answer4; ?></a>
</form>
</div></td>
</tr>
Can anybody help me with this?