What i am trying to do is based on the selected item gather data from the database and edit it. I have the drop list populated but i dont know how to get it so that when a user selects an item to generate the page with the data.
here is my php code so far.
Edit District Contact: <?php
// establish constants
$host="xxxxxx";
$user="xxxxxx";
$password="xxxxxx";
$database="xxxxxx";
// connect to database
mysql_connect($host, $user, $password);
@mysql_select_db($database) or die( "Error:ES-1001 N/A please contact webmaster @ cnack1@gmail.com");
// Variable Declaration
$sql="select District_Name from District";
$result=mysql_query($sql);
$numitems = mysql_query("select count(*) from district");
// Create select options from result
echo($numitems."<br>");
Print "<form><select><option>Select School...</option>";
while($row = mysql_fetch_array($result))
{
Print "<option value='".$row['District_Name']."'>".$row['District_Name']."</option>";
}
Print "</select></form>";
// Close Connection
mysql_close();
?>