thephilster Posted May 17, 2012 Share Posted May 17, 2012 My host provided me with a script for a form for getting emailed results and redirecting after completion. It seems the redirecting is being prefixed "my" url. As in: http:\\www.myurl.comhttp:\redirected.url.com. They suggested I download the script, fix it and re-upload it. :\ Closest I came to scripting was basic, lol. Showing my age. Anyway, the script is attached. For someone with php background will probably be easy to spot. Any help appreciated! Thanks! The Philster 18398_.php Quote Link to comment https://forums.phpfreaks.com/topic/262695-redirecting/ Share on other sites More sharing options...
givememore Posted May 18, 2012 Share Posted May 18, 2012 No, in the script there are no prefixed settings. As I can see the landingpage has to be by passing the parameter 'redirect={landingpage}' eighter by GET or by POST Method. Maybe you have an hidden field (<input type='hidden' name='redirect' value='{landingpage}'>) in your HTML-Form? {landingpage} is only the filename you want to redirect to (without the servers name and without any slashes)! Quote Link to comment https://forums.phpfreaks.com/topic/262695-redirecting/#findComment-1346549 Share on other sites More sharing options...
thephilster Posted May 18, 2012 Author Share Posted May 18, 2012 That's what I thought, but since the redirected page is outside of my domain (hardtimesover.com), I have to put the whole redirected URL in there. So what I get is that I should probably get another script? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/262695-redirecting/#findComment-1346639 Share on other sites More sharing options...
givememore Posted May 19, 2012 Share Posted May 19, 2012 ok, in that case you'll need a new script. I've made the changes in the one attached to this post. Here you'll need to submit the complete redirect-path like "http://www.hardtimesover.com". 18405_.php Quote Link to comment https://forums.phpfreaks.com/topic/262695-redirecting/#findComment-1346810 Share on other sites More sharing options...
thephilster Posted May 23, 2012 Author Share Posted May 23, 2012 :D :D Thanks! Worked like a charm! That was above and beyond! Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/262695-redirecting/#findComment-1347930 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.