Thank you for you help, that helped and got me on the right track ... here is what i have for anyone else that might need an example. I ended up using get instead of post, not sure if that is better or worse but it works now ....
$keyword = $_GET['keyword'];
$option = $_GET['option'];
$grade = $_GET['grade'];
echo "<br>";
//make the connection
$conn = mysql_connect("localhost", "root", "password");
mysql_select_db("arlist", $conn);
//create a query
$sql = "Select * FROM Book_List WHERE School='035' AND ";
if($option == "author")
{
$sql .= "(Author LIKE '%$keyword%')";
}
elseif($option == "title")
{
$sql .= "(Book_Title LIKE '%$keyword%')";
}
else//($option == "both")
{
$sql .= "(Author LIKE '%$keyword%' OR Book_Title LIKE '%$keyword%')";
}
$sql .= "AND ";
if($grade == "k3")
{
$sql .= "Reading_Level BETWEEN '0' AND '3'";
}
if($grade == "46")
{
$sql .= "Reading_Level BETWEEN '4' AND '6'";
}
if($grade == "78")
{
$sql .= "Reading_Level BETWEEN '7' AND '8'";
}
if($grade == "ag")
{
$sql .= "Reading_Level BETWEEN '0' AND '8'";
}
$result = mysql_query($sql, $conn) or die("Search Failed. Please try again later.");
print "<table border='1' align='center' width='80%'>\n";
//get field names
print "<tr>\n";
while ($field = mysql_fetch_field($result))
{
print " <th>$field->name</th>\n";
} //end while
print "</tr>\n\n";
//get row data as an associative array
while ($row = mysql_fetch_assoc($result)){
print "<tr>\n";
//look at each field
foreach ($row as $col=>$val){
print " <td>$val</td>\n";
} //end foreach
print "</tr>\n\n";
}//end while
print "</table>\n";
Thanks again for you help ~brett (bpat1434) , it is much appreciated ..
Jon