sure. This is the code from the form. I don't get any errors - just a blank page
<?$dsn="conserve";
$username="sa";
$password="";
$sqlconnect=odbc_connect($dsn,$username,$password); ?>
<!--create form-->
<form action="tuesday.php" method="POST">
Select a type:
<select name="type_search">
<?
$sqlquery= "SELECT type, type_id from types;";
$process=odbc_exec($sqlconnect, $sqlquery);
while(odbc_fetch_row($process))
{
$type=odbc_result($process,"type");
$type_id=odbc_result($process,"type_id");
echo "<option value=$type_id>$type</option>";}
?>
</select>
<br>
Select a Consultee:
<select name="consultee_search">
<option value="all">all</option>
<?
$sqlquery= "SELECT consultee_name, consultee_id from consultees;";
$process=odbc_exec($sqlconnect, $sqlquery);
while(odbc_fetch_row($process))
{
$consultee_name=odbc_result($process,"consultee_name");
$consultee_id=odbc_result($process,"consultee_id");
echo "
<option value=$consultee_id>$consultee_name</option>
";
}
?>
</select>
<br>
date:
<select name="year_search">
<!--create query for drop down menu with years from the doc_date_yr column of the documents table-->
<?
$sqlquery= "SELECT distinct doc_date_yr from documents;";
$process=odbc_exec($sqlconnect, $sqlquery);
while(odbc_fetch_row($process))
{
$doc_date_yr=odbc_result($process,"doc_date_yr");
//tell it to print results of query in the drop down menu
echo "<option>$doc_date_yr</option>";
}
odbc_close($sqlconnect);
?>
</select>
<input type="submit" />
</form></body>
</html>