Hi all I am having a problem with a bit of my code. I will include the code. It is a drop down menu where the user can select thier age. I am going to include the code i used to create the menu and how I then insert the information into the database. It always comes up 0.
drop down menu on html page:
insert into db:Code:<tr> <td width="165" height="27" align="right"> Age: </td> <td width="615" height="27" align="left"> <select name=UserAge> <option value="">Leave Blank</option> <? for($i = '18'; $i <= '75'; $i++) { echo "<option value=\"$i\">$i</option>\n\t"; } ?> </select> </td> </tr>
Code:UserAge = ' ".intval($UserAge) . "',






Bookmarks