This works:

<img src="<?php echo( "$image.gif" ) ?>" width=150 height=100 border=0>

This works too if you're not opposed to using straight php:

<?php

print "<html>\n<head>\n<title>Image Switch</title>\n";
print "<div align=center><img src=\"$image.gif\" width=150 height=100
border=0></div>\n";
print "</body>\n</html>";

?>

Later,

Bob Weaver

"Craig Westerman" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to set $image = imageA via a URL:
>
> http://www.abc123.com/php001/image_switch.php?image=imageA
>
> Script is:
>
> <html>
> <head>
>    <title>Image Switch</title>
> </head>
> <body>
>
> <div align="center"><img src="<?php $image ?>.gif" width="150"
height="100"
> border="0"></div>
>
> </body>
> </html>
>
>
> Image link ends up as:
> http://www.abc123.com/php001/.gif
>
> Link needs to be:
> http://www.abc123.com/php001/imageA.gif
>
> What am I doing wrong?
>
> Thanks
>
> Craig ><>
> [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to