Hi, im using the following to populate a dropdown menu from mysql which seems to work fine, i want to use these variables throughout though so i need to $_SESSION['Sname'] = $Sname; etc somewhere i presume? i've tried everything but with no luck
<?php
$sql="SELECT DISTINCT(Sname), Venue FROM shows1";
$result=mysql_query($sql);
$options="";
while ($row=mysql_fetch_array($result)) {
$Sname=$row["Sname"];
$options.="<OPTION VALUE=\"$Sname\">".$Sname;
}
?>
<FORM method = "POST" action = "book.php">
<SELECT NAME=Sname>
<OPTION VALUE=0>Choose a show
<?=$options?>
<INPUT TYPE=SUBMIT value = "Book Show">
</option>
thanks, help much appreciated