<?php
$myCat = (isset($_REQUEST['cat']) ? strtoupper($_REQUEST['cat']) : '');
$myCat2 = (isset($_REQUEST['cat']) ? ucwords($_REQUEST['cat']) : '');
$myX = (isset($_REQUEST['x']) ? ucfirst($_REQUEST['x']) : '');
if ($page == home) {
echo "Welcome to<br />
<font size=\"4\">Systems</font></font>
<br /><br />
<img src=\"images/divider.gif\" width=\"306\" height=\"1\" alt=\"\" /></p>";
} elseif (isset($_REQUEST['cat'])) {
if ($_REQUEST['cat'] != $hsia ) {
echo "$myCat2 > $myX <br />
<font size=\"4\">Systems</font></font>
<br /><br />
<img src=\"images/divider.gif\" width=\"306\" height=\"1\" alt=\"\" /></p>";
} else {
echo "$myCat > $myX <br />
<font size=\"4\">Systems</font></font>
<br /><br />
<img src=\"images/divider.gif\" width=\"306\" height=\"1\" alt=\"\" /></p>";
}
} elseif (!isset($_REQUEST['x'])) {
echo "Welcome to<br />
<font size=\"4\">Systems</font></font>
<br /><br />
<img src=\"images/divider.gif\" width=\"306\" height=\"1\" alt=\"\" /></p>";
} else {
echo "$myX <br />
<font size=\"4\">Systems</font></font>
<br /><br />
<img src=\"images/divider.gif\" width=\"306\" height=\"1\" alt=\"\" /></p>";
}
?>
When I try to have the value of $myCat2 be Like This and have $myCat be LIKE THIS in the following code:
} elseif (isset($_REQUEST['cat'])) {
if ($_REQUEST['cat'] != $hsia ) {
echo "$myCat2 > $myX <br />
<font size=\"4\">Systems</font></font>
<br /><br />
<img src=\"images/divider.gif\" width=\"306\" height=\"1\" alt=\"\" /></p>";
} else {
echo "$myCat > $myX <br />
<font size=\"4\">Systems</font></font>
<br /><br />
<img src=\"images/divider.gif\" width=\"306\" height=\"1\" alt=\"\" /></p>";
}
}
It seems as if both $myCat and $myCat2 are set as $myCat2
Any suggestions / ideas?
Thanks!