I am trying to insert into the mysql database using 4 text boxes and a drop down list, the text boxes work great, but the drop down list doesn't submit the item that is selected. I am sure this is probably an easy fix like the drop down list not being attached in any way to the submit button(not sure if it is or not), but I haven't found the answer yet, but here is the code that pertains to this
<form action="recipeinsert.php" method="post">
Category: <tr>
<td class="dr"><SELECT name=”category”>
<option value="main course">Main Course</option>
<option value="side dish">Side Dish</option>
<option value="desserts">Desserts</option>
<option value="drink">Drink</option>
</SELECT>
</td>
</tr>
Name of the food: <input type="text" name="name" />
Ingredients: <input type="text" name="ingredients" />
Directions: <input type="text" name="directions" />
Submitted by: <input type="text" name="submitted" />
<input type="submit" value = "Submit Recipe" />
</form>
and the processing form is this
$category = $_POST['category'];
$name = $_POST['name'];
$ingredients = $_POST['ingredients'];
$directions = $_POST['directions'];
$submitted = $_POST['submitted'];
include("../includes/recipedata.php");
$query = "INSERT INTO recipes (category, name, ingredients, directions, submitted, verify)VALUES ('".$category."', '".$name."', '".$ingredients."', '".$directions."', '".$submitted."', 'NULL')";
Thanks for any help!