Hi there,
I need to validate my form that uses PHP to dynamically select an option.
I am using:
<?
for ($i=0;$i<sizeof($categories);$i++) {
print "<option";
if ($row['business_category']==$categories[$i])
print " selected";
print ">".$categories[$i]."</option>\n";
}
?>
but I need it to show in XHTML as, for example:
<option selected="selected" value="all">All</option>
How would I do this?
Thanks