> Can anyone tell me how to display both jpg and gif images. Basically,
> what i've got is:
> <img src="$filedir/$CUserName".jpg>
>
> Now, I know I probably need slashes in there and I played around with it
> but no luck. Where do I put them?
TIP: Use "View Source" in your browser to see what the IMG tag looks like.
I suspect you've forgotten that you're not in PHP mode, and are just sending
a very oddly-named image tag, literally:
"$filedir/$CUserName"
Since the quotes are going there, I guess HTML is going to ignore the .jpg
part, or treat it as an unkown attribute.
I'm guessing you want:
<img src="<?php echo $filedir, '/', $CUserName, '.jpg';?>">
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]