PHP question
PHP question
Out of context: Reply #1
- Started
- Last post
- 6 Responses
- heavyt0
2 ways to do it:
1- PHP
2- Javascriptpersonally, i'd go javascript just to take the work off of the server. Both methods follow the same logic; interpret the URL as a string, and create the active state based on teh results.
in PHP you use PHP_SELF to get the page name, in Javacript you use window.location.toString() and an indexOf();
TR1