Originally Posted by abduraooft
Your code is not assigning the value there
$num_tries = (isset($_POST[num_tries]))?
$num_tries + 1: 0 ;
should be something
$num_tries = (isset($_POST['num_tries']))?
$_POST['num_tries'] + 1: 0 ;
Thank you, the script is working now with your help.
Could you explain a little bit the purpose of the following code
<input type="hidden" name="num_tries" value="<?php print $num_tries ?>">