| Author |
Sorry bizarre w3c error: the name and VI delimiter can be omitted....
|
|
| Michelle 2004-08-08, 12:14 pm |
| Hi there,
I just ran my page through the w3c validator and got these errors that I
have never seen before:
1.. Line 83, column 20: the name and VI delimiter can be omitted from an
attribute specification only if SHORTTAG YES is specified
<option selected>Ely</option>
?
2.. Line 100, column 20: the name and VI delimiter can be omitted from an
attribute specification only if SHORTTAG YES is specified
<option selected>IT</option>
?
3.. Line 117, column 20: the name and VI delimiter can be omitted from an
attribute specification only if SHORTTAG YES is specified
<option selected>Business Solutions</option>
These optios are selected dynamically via PHP like this:
<!-- Select Business Category Fields-->
<div class="row"><span class="label"><label
for="business_category">Please select business category</label></span>
<span class="formw">
<select name="business_category" id="business_category"
onfocus="this.style.background='#fff';"
onblur="this.style.background='#eee';" class="text"
onchange="document.pr.ac.value='delete';document.pr.submit();">
<option>Please select one</option>
<?
for ($i=0;$i<sizeof($categories);$i++) {
print "<option";
if ($row['business_category']==$categories[$i])
print " selected";
print ">".$categories[$i]."</option>\n";
}
?>
</select>
</span></div>
What might I be doing wrong?
Thanks
| |
| Gary White 2004-08-08, 12:14 pm |
| Michelle wrote:
Change this:
> print " selected";
To this:
print " selected=\"selected\"";
Gary
| |
| Michelle 2004-08-08, 7:14 pm |
| Hi Gary,
Worked a treat. Thanks :)
| |
| Gary White 2004-08-08, 7:14 pm |
| Michelle wrote:
>Hi Gary,
>
>Worked a treat. Thanks :)
You're welcome.
Gary
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |