illogic-al Posted October 26, 2003 Report Share Posted October 26, 2003 I'm trying something out w/ php but I'm kinda stuck now and the manuals kinda long. k here goes. I have this one one of my pages if (strstr($_SERVER["REQUEST_URI"], "tutorials.html")) { } which is basically supposed to show up tutorials in the menu if the current page is tutorials.html. I just realized that this is pretty useless since all the links on the tutorails page point to the same thing. I want to do something like match a regular expression (i think that what it's called) so i would have something like if (strstr($_SERVER["REQUEST_URI"], "tutorials*.html")) { } where * would be the actual tutorial pages. So if you're on one of those pages, and want to get to another tutorial, just click on that link. help Link to comment Share on other sites More sharing options...
illogic-al Posted November 3, 2003 Author Report Share Posted November 3, 2003 hope this works. I DID IT. was as simple as going to the reg expr part of tha manual. and now i give you, tha if (ereg("(tutorials)", $_SERVER["REQUEST_URI"])) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now