Thank you! That's exactly what I was looking for, but be damned if I could
find out how. I kept getting tons of hits for random images and too-complex
gallery programs, and I just don't know enough about PHP to come up with it
on my own.

Thank you very much. It works great.

Ali
----- Original Message ----- 
From: "Howard Cheng" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 27, 2004 10:14 AM
Subject: [wdvltalk] Re: Php help needed - include images


> PHP's include() function means, take the contents from this file and
> insert them here. So include() isn't really want you want to use because
> you can't just throw an image (binary) in the middle of your HTML
> (text). BUT, you can add an <img> tag, which will cause the browser to
> request an image.
>
> As a side note, when you're repeatedly testing the same variable, it's
> much easier to a switch() statement instead of if-elseif-elseif-else.
>
> switch ($s)
> {
>      case "contact":
> $img = "contact.jpg";
>          break;
>      // other cases
> }
> ?>
> <img src="<?= $img ?>">
>
> ::::::::::::::::::::::::::::::
> Howard Cheng
> http://www.howcheng.com/
> Wise-cracking quote goes here.


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to