And this is how my action page begins:
<?php
if (!$link = mysql_connect('localhost', 'user', 'pass'))
exit("Unable to make a connection to the database");
if (!mysql_select_db("weather_db", $link))
exit("Unable to select the database");
if ($region=="1"){$choice="'A','B','C','D','E','F','G','H','I','J','K','L'";}
if ($region=="2"){$choice="'A','B','C'";}
if ($region=="3"){$choice="'D','E'";}
if ($region=="4"){$choice="'F','G'";}
if ($region=="5"){$choice="'H','I'";}
if ($region=="6"){$choice="'J','K','L'";}
if (!(isset($fwi))) { // Handle the form.
// Define a SQL Select Query
$query = "SELECT * FROM ".$product.", Stations WHERE (".$product.".FMFP_ID=Stations.FMFP_ID) AND (Stations.grp IN(" . stripslashes($choice) . ")) AND (Stations.forecast LIKE 'y') ORDER by 'grp','pos'";
if (!$result = mysql_query($query))
exit("Illegal query");
if ($product=="Actual_Noon"){$header= "Noon Actuals"; $SFMS="Noon";}
if ($product=="Forecast_Today"){$header= "Today's Forecast"; $SFMS="Today";}
if ($product=="Forecast_Tomorrow"){$header= "Tomorrow's Forecast"; $SFMS="Tomorrow";}
if ($product=="Forecast_Extended"){$header= "Extended Forecast";}
if ($region =="1"){$regions = "All Regions"; $map="Provincial.gif";}
if ($region =="2"){$regions = "Shield"; $map="Shield.gif";}
if ($region =="3"){$regions = "West Boreal"; $map="WestBoreal.gif";}
if ($region =="4"){$regions = "East Boreal"; $map="EastBoreal.gif";}
if ($region =="5"){$regions = "Parkland"; $map="Parkland.gif";}
if ($region =="6"){$regions ="Grassland"; $map="Grassland.gif";}
Now the region and product are passed fine. I currently have !isset because the fwi is never set because it is not passed.