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