-
Dynamic image tag validating as XHTML/Basic
Hey all,
I'm coding a php app to download images to your cellphone, and am running into a wall trying to get my thumbnails to work. The validator complains that there isn't a semicolon after the = sign...and that'd kinda break things.
I'm calling the images with something like this:
<img src="thumber.php?f=images/190396220037.jpg&w=72&h=99&q=30&t=jpg" border="0" height="99" width="72" alt="preview">
It also barfs and complains that it's not using a jpg or gif for an image, when I know darned well the php script is spitting back a perfectly valid jpg file (or gif or bmp or wbmp or png or frankly whatever the heck you ask it for).
Without using mod_rewrite, how can I get that little fart to validate?
Many TIA,
Dan
-
-
You can do a few things.
One, instead of an ampersand (&), it's valid to use a semi-colon ( ; ) between variable entries.
Two, you can escape the ampersands for html. Use &
I hope this helps.
As for it not liking it for not being a jpg, etc., that's dumb. See if fixing the rest helps it understand that it is valid. If not, I'm not sure what to say about that, except that it's unfortunate.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks