This is the drop down list of security questions:
<form action="ddlprocess.php" method="post">
<select name="security1">
<option value="placeOfBirth">What city were you born in?</option>
<option value="childhoodFriend">Who was your childhood best friend?</option>
<option value="mothersMaiden">What is your mother's maiden name?</option>
<option value="mothersMiddle">What is your mother's middle name?</option>
<option value="fathersMiddle">What is your father's middle name?</option>
</select><br />
<input type="submit" value="Register"></input>
</form>
This is the page to process it (ddlprocess.php):
<?php
if ($_POST['security1'])
{
// db connection established
$sq1 = ($_POST['security1']) or die("evil bug " . mysql_error());
echo $security1 or die("cannot find security1 ");
}
?>
When php echoes security1, it gives me the number 1 instead of the value of the drop down list.
I have scoured the web and search engines trying to find someone with a similar problem or to learn additional information on how $_POST works, and i have learned nothing but that this should be working the way it is!
Heeellllppp Meeeeee Pleeaasssee!!!:(