View Full Version : PHP script modify question

12-27-2003, 06:46 PM
I am trying to design a form and running into a problem.I am trying to use a drop down and it is required BUT how do i make the first one blank so the have to change it to a different choice

when i try to have the first one say select one the script thinks that is the choice

<font face="Verdana" size="2">Destination</td>
<td height="30" width="469" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana"><select name='Destination'><option value='Alaska'>Alaska<option value='Canada'>Canada<option value='Caribbean'>Caribbean</select>*</td></tr><tr><td colspan="3" bgcolor="#B5CBEF" height="25" width="737" background="tile_sub.gif"><p align="center"><font face="Verdana" size="2">


12-27-2003, 07:26 PM
You'd have to handle that in your validation routine.

IE something like...

if($_POST['Destination']=="Select One") {
echo "Please select a destination";
return false;

or something similar.