I had this code working, and I was trying to get markup validation and something I changed broke it, now I have spent a couple hours trying to fix it and have no luck, so maybe someone else can see the problem. It's 2 drop down boxes and the values of both are supposed to be sent, but nothing is being sent. First page:
<form method="post" action="recipe_proc.php">
<?php
$h=0; //counter for category
$i=0; //counter for submitter
echo "<select name = category>
<option value = '*'>Search by Category</option>";
while ($h < $numcategory) {
$category=mysql_result($categoryresult,$h,"category");
echo "<option value = '$category'>$category</option>";
$h++;
};
echo "</select>";
echo "<select name = user>
<option value = '*'>Search by Submitter</option>";
while ($i < $numuser) {
$user=mysql_result($userresult,$i,"submitted");
echo "<option value = '$user'>$user</option>";
$i++;
};
?>
<input type="submit" value = "Search Recipes" >
</form>
Processor page
$category = $_POST['category'];
$name = $_POST['user'];
On the processor page I printed out $category and $name and neither of them contain anything that is in the prior page.