Hi,
I have a form.html which uses method POST and several input types like text, radio and simple drop down boxes.
This form.html calls a form.php which takes the variables and inserts into a database.
Now , how do i define variables for radio type inputs and for simple drop down boxes ?
My script in from.html is as follows :
<TD ALIGN=RIGHT COLSPAN=2><b><font color =#5f0000>Gender : </font></TD>
<TD><INPUT NAME='male' TYPE=RADIO VALUE='m'>Male</TD>
</tr><tr>
<td></td><td></td>
<TD><INPUT NAME='female' TYPE=RADIO VALUE='f'>Female</TD>
<br><br>
<select name = test size =1 >
<option value = tsh>test1
<option value = amino>test2
<option value = galt>test3
<option value = biotin>test4
</select>
</TR
and in form.php,
$gender=$_post['gender']
$query=mysql_query("insert into $tablename values ('$gender')");
Now i wish to enter m in the database when male is selected and f for female.
And secondly if an test is selected from the drop down box, then i wish to throw to the entry operator another form to enter test details.
How do i go about the above?
many thanx in advance for responding to this post and offering solutions .