Why wont this work? is it possible to do it like this?
Page 1:
<?php
echo "<img src='main.php?img=1'>";
?>
Page 2:
<?php
$img = $_REQUEST['img'];
switch($img)
{
case "1":
echo "<img src='test.jpg' width='200' height='20' alt='Picture - 1'>";
break;
case "2":
echo "<img src='test.jpg' width='200' height='20' alt='Picture - 2'>";
break;
case "3":
echo "<img src='test.jpg' width='200' height='20' alt='Picture - 3'>";
break;
}
?>
Should this not choose image three and display it??