Hi,
I extract the referring page name ($page value) which I want to code, rather then passing on the long names. I have this:
if ($page == "page1")
{
$s4= "01";
} elseif ($page == "page2") {
$s4 = "02";
} elseif ($page == "page3") {
$s4 = "03";
} else {
$s4 = $page;
}// end of IF
I set the page codes manually, and those that were not set, the full name will get passed at the end ($s4 = $page;).
Now I wonder if this could be setup as an array, something that would look like this:
$s4 = array(
"page1" => "01",
"page2" => "02",
"page3" => "03"
);
Would that be possible? If it would, how do I create the last statement to pick the page that was not on the list?
Thank you