I can't get the following page to display the img, whose name is
passed in the URL. The variable, showme, is the name of a jpg file
(e.g., coolpict.jpg). It is being passed correctly, as verified by the
echo line (only there for testing purposes), but it doesn't get
translated in the img tag.
<html>
<head>
<title>Images </title>
<style type="text/css">
body {background:gra y; text-align:center;}
img {margin:10%;}
</style>
</head>
<body>
<? echo $_GET['showme'] ?>
<img src= <? $_GET['showme'] ?> >
</body>
</html>
passed in the URL. The variable, showme, is the name of a jpg file
(e.g., coolpict.jpg). It is being passed correctly, as verified by the
echo line (only there for testing purposes), but it doesn't get
translated in the img tag.
<html>
<head>
<title>Images </title>
<style type="text/css">
body {background:gra y; text-align:center;}
img {margin:10%;}
</style>
</head>
<body>
<? echo $_GET['showme'] ?>
<img src= <? $_GET['showme'] ?> >
</body>
</html>
Comment