Graxeon Posted December 22, 2008 Share Posted December 22, 2008 This is a request...but a small one so I hope that you guys don't mind taking it I want to setup a PHP file that would do this: http://www.domain.com/file.php?v=http://www.google.com/search?hl=en&q=php "file.php" would then redirect the user to this: http://www.google.com/search?hl=en&q=php+help So "file.php" took the URL "http://www.google.com/search?hl=en&q=php" and added "+help" to it. Then it redirected the user to that URL. Can someone help me out, please? Quote Link to comment https://forums.phpfreaks.com/topic/138065-solved-insert-text-after-an-input/ Share on other sites More sharing options...
DarkerAngel Posted December 22, 2008 Share Posted December 22, 2008 header("Location: ".str_replace("v=", "", $_SERVER['QUERY_STRING'])."+help"); Just off the top of my head... Quote Link to comment https://forums.phpfreaks.com/topic/138065-solved-insert-text-after-an-input/#findComment-721694 Share on other sites More sharing options...
Graxeon Posted December 22, 2008 Author Share Posted December 22, 2008 Works perfectly, thank you very much Quote Link to comment https://forums.phpfreaks.com/topic/138065-solved-insert-text-after-an-input/#findComment-721702 Share on other sites More sharing options...
DarkerAngel Posted December 22, 2008 Share Posted December 22, 2008 Never a Problem Make sure you mark the thread as solved Quote Link to comment https://forums.phpfreaks.com/topic/138065-solved-insert-text-after-an-input/#findComment-721705 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.