jefargrafx
Instructor
I got one file that includes another (a navigation panel).
I'd that php to echo a link based on a url variable.
here's my code
<?php
if ($HTTP_GET_VARS['affiliate'] == "wilsons") {
echo "";
} else {
echo "Loyal To The Core<br>";
}
?>
word fine in the parent file when I include one file for the other, but that requires me to manager two naviagtion files.
I'd rather use only one and change the links based on the url variable file.php?panel=jef
cann't an incldued file read the variable from it's parent?
if not how would yall do this with one file
let me know
jef
I'd that php to echo a link based on a url variable.
here's my code
<?php
if ($HTTP_GET_VARS['affiliate'] == "wilsons") {
echo "";
} else {
echo "Loyal To The Core<br>";
}
?>
word fine in the parent file when I include one file for the other, but that requires me to manager two naviagtion files.
I'd rather use only one and change the links based on the url variable file.php?panel=jef
cann't an incldued file read the variable from it's parent?
if not how would yall do this with one file
let me know
jef