...

View Full Version : PHP script modify question



stevan
12-27-2003, 05: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">


Thxs STEVE

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

IE something like...



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


or something similar.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum