Forum Moderators: coopster
Thank you
<img src=My Picture.jpg width=129 height=160>
This is what you should have:
<img src="My Picture.jpg" width="129" height="160" alt="">
;)
<img src=My Picture.jpg width=129 height=160> So, as far as the browser knows, the src is just My. You need to wrap the source in quotes so that it looks like this:
<img src="My Picture.jpg" width=129 height=160> To do this with php, you have to escape the quotes so that the echo call isn't terminated too early
echo "<img src=\"".$picture"\" width=129 height=160>"; I believe that should work. I'm not sure, maybe someone else can confirm this, but I think it's better to not even use a space in an image name, is that right?
Jennifer<--types too slowly without having breakfast
echo "<img src=\"".$picture."\" width=\"129\" height=\"160\" alt=\" \">"; I forgot the second concatenation (dot). What they do is join <img src=" to My Picture.jpg to " width="129" height="160" alt=" "> so you're left with <img src="My Picture.jpg" width="129" height="160" alt=" ">
Jennifer