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? 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 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
Archived
This topic is now archived and is closed to further replies.