i have a php page with a simple html form on it.
one line requests the users date-of-birth...
<td nowrap="nowrap">DateOfBirth(yyyy-mm-dd)</td>
<td><input name="dateofbirth" type="text" value="1950-12-31" size="10" maxlength="10" />
but i have changed the form to display dropdowns...
<td><select name="mydobday" id="mydobday">
<option value="01">01</option>......................
<td><select name="mydobmth" id="mydobmth">
<option value="01">01</option>......................
<td><select name="mydobyr" id="mydobyr">
<option value="1940" selected="selected">1940</option>
<option value="1941">1941 </option>.............
so now i need two lines like......
<php $dateofbirth=$mydobyr."-".$mydobmth."-".$mydobday; ?>
<td><input name="dateofbirth" type="hidden" id="dateofbirth" value="<?php echo $dateofbirth; ?>" /></td>
But obviously (to you) this will not work.
So the question is: How do i make it work - i cannot find the answer anywhere... (PLEASEEEEEEEE)