Hi,
This code works fine but, when i choose "Female" from selectbox, it sets "Male" in the selectbox again. What is the problem?
Thanks
<?php
if (!isset($_POST["sex"])) {
print "Please start!";
} else if ("Male" == $_POST["sex"]) {
print "Male !";
} else if ("Female" == $_POST["sex"]) {
print "Female !";
} else {
print "Himmm!";
}
?>
<html>
<head></head>
<body>
<form action="result.php" method="post">
SEX? <select name="sex" >
<option value="Male">Male</option>
<option value="Female">Female</option>
</select><br>
<input type="submit" value="Send">
</form>
</body>
</html>