Posted by Karl Groves on 08/15/06 14:48
peteski22@gmail.com wrote in news:1155652970.767956.93180
@i42g2000cwa.googlegroups.com:
> How can I get my webpage to validate to XHTML strict if I am using the
> commands as given in the phpthumb demo:
>
> <img src="../phpThumb.php?src=images/disk.jpg&w=200">
>
> This gives validation errors as I'm not allowed the 'w' or other
> parameters.
The validation error is because of the ampersand.
Use: <img src="../phpThumb.php?src=images/disk.jpg&w=200">
(if it is XHTML, use <img src="../phpThumb.php?src=images/disk.jpg&w=
200" />
You'll also need to supply an alt attribute to pass validation as well.
--
Karl Groves
www.karlcore.com
Navigation:
[Reply to this message]
|