sphinx Posted February 2, 2015 Share Posted February 2, 2015 Hello. How would I print the following: http://site.com/break?return=site2.com So that I can set a button containing site2.com. Example: <a href="site2.com"></a> And so forth: http://site.com/break?return=site3.com Would print: <a href="site3.com"></a> Quote Link to comment https://forums.phpfreaks.com/topic/294308-print-part-of-the-url/ Share on other sites More sharing options...
requinix Posted February 2, 2015 Share Posted February 2, 2015 If that is your own URL for a page on your own site then use $_GET. Otherwise parse_url to get the entire query string and parse_str to parse the query string into an associative array. Quote Link to comment https://forums.phpfreaks.com/topic/294308-print-part-of-the-url/#findComment-1504543 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.