hello
I have this code for the first page
and i have to insert the date in a table sql using another page
It gives me error: Notice:
Undefined variable: dt in C:\wamp\www\www \Register.php on line 27
Could you inform me why? And what to do?
Thanks
I have this code for the first page
Code:
<form name=form> ... Date of registration: <script name="dt"> d=new Date(); AffDate(d); </script> .... </form>
Code:
if(isset($_POST["document.form.getElemnetsByTagName('script')"]))
$dt=$_POST["document.form.getElemnetsByTagName('script')"];
include('MySQLConnection.php');
$result=mysql_query("INSRET INTO registration (ID_etu, level_etu, class_etu, section_etu, date_reg )
values('', '".$rb."', '".$C."', '".$rd1."', '".$dt."'");
$sql=mysql_query($result. "mysql_error()");
?>
Undefined variable: dt in C:\wamp\www\www \Register.php on line 27
Could you inform me why? And what to do?
Thanks
Comment