Passing selection to next page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a drop down list created using the following code and am having
trouble passing my selection to the next page. Can anyone help?

<?
$query = "select distinct department from courses order by department";
$result = mysql_query($query);

echo "<SELECT ID='Category Combo Box' NAME='department'>";
echo "<OPTION VALUE=' ' SELECTED>Select Department</OPTION>";

While ($row = mysql_fetch_assoc($result))
{
   echo "<OPTION VALUE='";
   echo stripslashes($row["department"]);
   echo "'> ";
   echo stripslashes($row["department"]);
   echo "</OPTION>";
}

echo "</SELECT>";
mysql_free_result($result);
?>




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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux