Hi all -
How can i echo back the value of of the following -
If the form has other errors - ie. if a user has missed filling in a field -
I can echo other fields if there are errors
Im just having some difficulties in echo-ing out the value selected from the drop down box -
Any pointers or advice would be appreciated - :)
error trapping
//trade experience
if ( strlen( $tskl ) < 1 )
{
$msg_tskl = '<img src="img/loading.gif" width="16" height="16"
hspace="2" vspace="2" align="left" title="Select trade or service" alt="Select trade or service" />
<font color="#21699e" size="-3"> Select trade or service</font>';
$b1=false;
}
here is the part of the form - its a drop down box that is automatically populated from a mysql database -
<select name="wex" value='<? echo $experience; ?>' class="ta" id="wex">
<option value="">Select experience</option>
<?
while($category_arr = mysql_fetch_array($result_wex)){
?>
<option value="<?=$category_arr['experience']?>"><?=$category_arr['experience']?></option>
<?
}
?>
</select>