Hey everyone, I have a folder with a bunch of images in it and I am trying to display them one at a time by looping through a <SELECT> and what ever is selected is the image that is seen. I select everything correctly and I can see the variable in the URL is correct but nothing prints out when I try to print the .gif, its drivin me nuts on this sunny day... so I am going outside to soak in some rays, thanks for the help... also I cant get $PHP_SELF to work
echo "<FORM name = \"form1\" action = \"http://$PHP_SELF" method = \"get\">"; This should work right? Maybe I am just having a dumb day, thanks
Code below
<?php
echo "<FORM name = \"form1\" action = \"http://$site/test2/stats.php\" method = \"get\">";
echo "<SELECT NAME=seminarname><option>Select a Seminar</option></select><SELECT name=graphname size=\"1\">";
//Makes all of the 1-5 line graphs
$titles = mysql_query("SELECT questionalias,question from questionalias where questiontype = '1'");//Selects all questions that are bar graphs
while($pictitles = mysql_fetch_object($titles))
{
echo "<option value = $pictitles->questionalias>$pictitles->question</option>";
}
echo "</SELECT><input type=submit name=next value=\"Get Graph\"></form><br><br><center>";
echo "<img src =http://$site/jpgraph14/tmp/$getgraph.gif border=0 align=center width=500 height=200>";
?>
Damian Gibbs