I still can't figure out where to put that code or how to display the information. Right now if I can get it to echo the $row[0] for the record I selected in the list box I will be happy. Once I have that I think I can put the rest of it together.
Here is what I have so far....
<html>
<body>
<?php
if(isset($_POST['submit'])) {
echo "xxxxxx"; //<--- the $row[0] for the record I selected in the list box
}
else{
// display form
?>
<form method="post" action="<?php echo $PHP_SELF?>">
<?php
$db = mysql_connect('localhost', 'username','password');
mysql_select_db('census',$db);
$result=mysql_query("SELECT * FROM providerinfo order by lastname,firstname");
echo "<select name=\"provider\">";
while ($row = mysql_fetch_array($result)) {
print "<option value=\"" . $row[0] . "\">" . $row[1] .", " . $row[2] . "</option>";
}
echo "</select>";
?>
<br>
<input type="submit" name="Submit" value="submit">
</select>
</form>
<?php
} // end if
?>