What I need to do is display an image on the page, but part of the URL of that image comes from a PHP variable.
Example- I want to display this image:
http://website.com/images/$name/file.gif
This is the code I have so far:
But it doesn't work. I know the problem is with the image insertion as the $name = $_POST[name]; works fine.Code:<?php $name = $_POST[name]; ?> <img scr = "http://website.com/images/$name/file.gif">
Thanks in advance for your help.



Reply With Quote


Bookmarks