<?php
if (isset($_REQUEST['x'])) {
if ($page == contact) {
echo "contact.php";
} elseif (!isset($_REQUEST['x'])) {
echo "iframe.php?x=home";
} else {
echo "iframe.php?x=$page";
}
}
?>
I am trying to do the following:
if the value of x=contact, print contact.php
if the value of x=$page ($page is defined in the same file as $_REQUEST['x']), print iframe.php?x=$page
if there isn't a value of x, display iframe.php?x=home
The script works except displaying iframe.php?x=home if x doesn't have a value.
Any ideas?