It takes time 🙂
The hardest part is understanding why something isn't working and how to get it working (safely) 🙂
So.. to answer your question, there are several ways to what you asked... (and introduce you to "alternative syntax" .. in this case.. the "switch" statement).
Method1 (if/elseif/else):
if ($_GET['season'] == "low")
{
header("Location: lowseason.html");
}
elseif ($_GET['season'] == "mid")
{
header("Location: lowseason.html");
}
else
{
header("Location: ortherseasons.html");
}
Method2 (if/else)
if ($_GET['season'] == "low" || $_GET['season'] == "mid")
{
header("Location: lowseason.html");
}
else
{
header("Location: ortherseasons.html");
}
Method3 (Switch)
switch ($_GET['season'])
{
case low:
case mid:
header("Location: lowseason.html");
break;
default:
header("Location: ortherseasons.html");
break;
}
These three aren't the exhaustive list of ways to achieve your goal. Which you choose is up to you (as you are just starting out). Id personally go for the Switch but.. that's upto you 🙂
Most important here is to understand WHY it works and how each are useful for different situations 🙂
http://uk.php.net/switch <--- the PHP Manual for switch (read the manual, honestly.. it helps 😃 )