Results 1 to 2 of 2

Thread: Dynamic image tag validating as XHTML/Basic

  1. #1
    Join Date
    Nov 2007
    Location
    Daytona Beach, FL
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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 &amp;

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •