roldahayes Posted January 31, 2012 Share Posted January 31, 2012 Hi, I hope this can be done and need some advise as to how. I have a search results page that has a URL of: results-page.php?make=FORD&model=TRANSIT--2000-on++Standard+LOW+ROOF+Models&submit.x=22&submit.y=7 Can i create a button or link on that page to adjust the start of the URL but keeping the dynamically created end part? i.e: new-results-page.php?make=FORD&model=TRANSIT--2000-on++Standard+LOW+ROOF+Models&submit.x=22&submit.y=7 I Hope this makes sense. Quote Link to comment https://forums.phpfreaks.com/topic/256108-edit-url-with-php-code/ Share on other sites More sharing options...
roldahayes Posted January 31, 2012 Author Share Posted January 31, 2012 Aha. Looks like it is solved by using <?php echo '<a href=new-results-page.php?'.$_SERVER['QUERY_STRING'].'">Back</a>.'; ?> Thanks for looking! Quote Link to comment https://forums.phpfreaks.com/topic/256108-edit-url-with-php-code/#findComment-1312910 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.