I try to validate my code, but i get a few error, and i need help with this:
I get a few error for this:
- end tag for “param” omitted, but OMITTAG NO was specified
- cannot generate system identifier for general entity “color”
- general entity “color” not defined and no default entity
4 reference not terminated by REFC delimiter
> > <object
> > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> > codebase="http://macromedia.com/cabs/swflash.cab#version=6,0,0,0"
> > id="flaMovie" width="400"
> > height="235">
> > <param name="movie" value="swf/test_movie_purple.swf">
> > <param name="FlashVars" value="lan=<?php echo
> > $_SESSION['lan'];?>&color=<?php echo
> > $color;?>">
> > <param name="quality" value="medium">
> > <param name="wmode" value="transparent">
> > <embed src="swf/test_movie_purple.swf"
> > flashvars="lan=<?php echo
> > $_SESSION['lan'];?>&color=<?php echo
> > $color;?>" wmode="transparent"
> > width="400" height="235"
> > type="application/x-shockwave-flash"></embed></object>
Could anyone help me fix this? Im goin’ to crazy..
In HTML-compatible-XHTML, elements that are always empty, like
<img>and<param>must use the self-closing syntax:(note the
/. Same for all otherparams.)You forget to encode the
&character beforecolor=...in the URL. It should be&color=....Additionally, the old-school
<embed>element is undefined in both HTML4 and XHTML1, so it won’t validate anyway. See this question for some discussion on Flash embedding methods.