Soldato
Hi, I can't work out why it wont work.. can anyone shed any light?
PHP:
<?php
$education = $_POST["education"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
?>
<html>
<head>
<title>Personal INFO</title>
</head>
<body>
<form method="post" action="<?php echo $PHP_SELF;?>">
Select a Level of Education:<br />
<select name="education">
<option value="Jr.High">Jr.High</option>
<option value="HighSchool">HighSchool</option>
<option value="College">College</option></select><br />
<input type="submit" value="submit" name="submit">
</form>
<?php
elseif ($education == "Jr.High") {
echo "$education."! . "Elseif for Junior High has worked!""<br />";
}
elseif ($education == "HighSchool") {
echo "$education."! . "Elseif for HighSchool has worked!""<br />";
}
elseif ($education == "College") {
echo "$education."! . "Elseif for College has worked!""<br />";
}
else {
echo "There has been an error! You suck at this!";
?>
</body>
</html>