how do i put the date into my HTML form ?
Posted: Wed Nov 26, 2003 8:15 pm
I'm making a form in HTML.
I need a hidden .. where i put the current date and a hidden .. with a customernumber (maybe just a random number)
I tried something like this but that does'nt work .... (yes i'm new here
head, body, form and then .......
<input type="hidden" name="command" value="CRAUTH"
<input type="hidden" name="service_id" value="00"
<?php
$today_date = date("YmdHis") ;
$refnumber = mt_rand() ;
echo"<input type="hidden" name="ref_no" value="$refnumber"" ;
echo"<input type="hidden" name="ref_date" value="$today_date"" ;
?>
..... etcetera
Pse help.
(email me directly: gbruit >at< yahoo >dot< com)
gb
I need a hidden .. where i put the current date and a hidden .. with a customernumber (maybe just a random number)
I tried something like this but that does'nt work .... (yes i'm new here
head, body, form and then .......
<input type="hidden" name="command" value="CRAUTH"
<input type="hidden" name="service_id" value="00"
<?php
$today_date = date("YmdHis") ;
$refnumber = mt_rand() ;
echo"<input type="hidden" name="ref_no" value="$refnumber"" ;
echo"<input type="hidden" name="ref_date" value="$today_date"" ;
?>
..... etcetera
Pse help.
(email me directly: gbruit >at< yahoo >dot< com)
gb