dbradbury Posted April 7, 2010 Share Posted April 7, 2010 say i have this url... site.com/lyrics/a/anastacia/ can i get the 'a' and 'anastacia'? like doing this $letter = $_GET['s/'] <- would that get the letter 'a'? or does the url need an '=' to make that work? and is there a way to get the variable with slashes? Quote Link to comment https://forums.phpfreaks.com/topic/197914-can-you-get-the-variable-from-the-url/ Share on other sites More sharing options...
premiso Posted April 7, 2010 Share Posted April 7, 2010 If you are using apache, you need to use mod_rewrite. If IIS, I am not sure you will have to google. For an article for Apache: http://knol.google.com/k/seo-friendly-url-or-pretty-url-using-apache-mod-rewrite Quote Link to comment https://forums.phpfreaks.com/topic/197914-can-you-get-the-variable-from-the-url/#findComment-1038614 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.