PHP Question
PHP Question
- Started
- Last post
- 3 Responses
- frankosonik
I want to use a single include file to show navigation for an entire site. I understand how to do if-statements in PHP, but I'm not sure how to get the variable in the URL and the if-statement to work together.
For instance:
URL: blah.com/test.php?nav=1If-Statement:
Any help for this PHP newbie is appreciated!
- Mimio0
myNav = $_GET['nav'];
This will place the GET variable into a new variable to be evaluated on the current page.
- frankosonik0
Thanks a million!