In a html and php form, which passes to a mysql db, can you prevent the same user from responding several times? And limit the time to a week, for example? I want that after a given time, one month, (in the example the month of February), the user can no longer cover the form and close it.
<?php
//prueba para limitar la fecha
if (date("m") >=2 && date ("m")<=3);
{
echo "has llegado tarde para cubrir el formulario";
}
else {
exit;
}
?>
but I have an error:
Parse error: syntax error, unexpected 'else' (T_ELSE), expecting end of file in C: \ xampp \ htdocs \ procesaCasaTum.php on line 7