Passing selection to next page
| From: | Alex Francis | Date: | Thu, 19 Dec 2002 11:04:34 +0000 |
| Subject: | Passing selection to next page | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24275@lists.php.net to get a copy of this message | ||
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);
?>