Hi everybody. Thus far. I have successfully created a drop down menu. What I want is for someone to choose a selection from the drop down list in admin_page.php and click the Status button to view the status of the option chosen. For now, I created a status button that will go to status.php. Can someone help with some code that takes whats chosen in the drop down in admin_page.php and use in status.php? Any help is appreciated! thanks!
Snippet of my code: admin_page.php
<?
$adminID = $_SESSION['user_admin'];
$titleChosen = $_REQUEST['title'];
$sql="SELECT title FROM Election WHERE adminID ='$adminID'";
$result= mysql_query($sql);
$options="";
/**No elections? Handle with error if default "view an election" is chosen!*/
while ($row=mysql_fetch_array($result)) {
$title=$row["title"];
$options.="<OPTION VALUE=\"$title\">$title</OPTION>";
}
?>
<HTML>
<BODY>
...
<SELECT NAME="title" style="font-size:11pt; font-family: arial,helvetica,sans-serif; color:#080000">
<OPTION VALUE="0" style="font-size:11pt; font-family: arial,helvetica,sans-serif; color:#080000">View an election
<?
echo $options;
?>
</SELECT>
<h2></h2>
<? statusButton(); //shows a status button that will go to status.php
?>
</BODY>
</HTML>