Time-Sensitive Form Example
<?
<FORM ACTION="index.php" METHOD=GET>
<INPUT TYPE="hidden" NAME="time" VALUE="<?php echo time(); ?>">
Enter your message (5 minute time limit):<INPUT TYPE="text" NAME="mytext" VALUE="">
<INPUT TYPE="submit" Value="Send Data">
</FORM>
if($_GET['time']+300 >= time()) {
echo "You took too long!<BR>";
exit;
}
?>
Related examples in the same category