loonatik
04-25-2003, 11:26 PM
My submission form asks for a person's birthdate:
<select name='month'>....</select>
<select name='day'>....</select>
<input type='text' name='year'>
In the db, there is one field called "birthdate". I want to insert the month, day, and year in the form "00-00-0000" into that one field in the db. Right now I have mysql_query ("INSERT INTO members (name,email,username,password,birthdate) values ('".$_POST[name]."','".$_POST[email]."','".$_POST[username]."','".$_POST[password]."',''".$_POST[birthdate]."", $dbh);
I tried passing
<input type='hidden' name='birthdate' value='".$month."".$day."".$year."'>
in the form, but it doesnt work. Any solution? Thanks.
<select name='month'>....</select>
<select name='day'>....</select>
<input type='text' name='year'>
In the db, there is one field called "birthdate". I want to insert the month, day, and year in the form "00-00-0000" into that one field in the db. Right now I have mysql_query ("INSERT INTO members (name,email,username,password,birthdate) values ('".$_POST[name]."','".$_POST[email]."','".$_POST[username]."','".$_POST[password]."',''".$_POST[birthdate]."", $dbh);
I tried passing
<input type='hidden' name='birthdate' value='".$month."".$day."".$year."'>
in the form, but it doesnt work. Any solution? Thanks.