Hi there guys,
I'm making a dummy page, where someone does a search, and I have three possible outcomes. Two will go to pages with info, and the catch-all will tell them that the record doesn't exist. The problem I'm running into, is that I don't know how to add the second condition. Here's what I have so far:
<?
$initial = (strtoupper($_POST['initial']));
$emp_number = $_POST['emp_number'];
$employee = ($initial.$emp_number);
if ($employee == "GM030374") {
include("GM030374.html");
} else {
echo "That employee record does not exist in our database.";
};
?>
I don't know how to add the second condition:
if($employee == "JL409241") {
include ("JL409241.html");
}
Would it look like this?
<?
$initial = (strtoupper($_POST['initial']));
$emp_number = $_POST['emp_number'];
$employee = ($initial.$emp_number);
if ($employee == "GM030374") {
include("GM030374.html");
} else {
if ($employee == "JL409241") {
include("JL409241.html");
} else {
echo "That employee record does not exist in our database.";
};
};
} else {
echo "That employee record does not exist in our database.";
};
?>
thanks for your time,
json