Beaumonde Posted October 25, 2008 Share Posted October 25, 2008 Hi Stat Progress | Stat Averages | Stat Records Link to comment Share on other sites More sharing options...
ClareJonsson Posted October 25, 2008 Share Posted October 25, 2008 Can you post the code that generates the URL and redirect? [Assist-X] Link to comment Share on other sites More sharing options...
Beaumonde Posted October 25, 2008 Author Share Posted October 25, 2008 Can you post the code that generates the URL and redirect? By "setting up" I meant I did this part first so whatever is wrong is wrong with what we have here, which doesn't really make sense. Stat Progress | Stat Averages | Stat Records Link to comment Share on other sites More sharing options...
Errdoth Posted October 25, 2008 Share Posted October 25, 2008 <?php header("Location: ".$_GET['go']); ?> should work just fine. Last.fm Signature Overlays Link to comment Share on other sites More sharing options...
Beaumonde Posted October 25, 2008 Author Share Posted October 25, 2008 <?php header("Location: ".$_GET['go']); ?> should work just fine. Nope, I get this error then: Warning: Cannot modify header information - headers already sent by (output started at /home/cosmic/public_html/gamrzone/hi.php:3) in /home/cosmic/public_html/gamrzone/hi.php on line 3 Stat Progress | Stat Averages | Stat Records Link to comment Share on other sites More sharing options...
Errdoth Posted October 25, 2008 Share Posted October 25, 2008 <?php header("Location: ".$_GET['go']); ?> should work just fine. Nope, I get this error then: Warning: Cannot modify header information - headers already sent by (output started at /home/cosmic/public_html/gamrzone/hi.php:3) in /home/cosmic/public_html/gamrzone/hi.php on line 3 Don't include any of the other crap in there, that should be the only line in the file. Last.fm Signature Overlays Link to comment Share on other sites More sharing options...
MageUK Posted October 25, 2008 Share Posted October 25, 2008 <?php header("Location: ".$_GET['go']); ?> should work just fine. Nope, I get this error then: Warning: Cannot modify header information - headers already sent by (output started at /home/cosmic/public_html/gamrzone/hi.php:3) in /home/cosmic/public_html/gamrzone/hi.php on line 3 That means you're sending something to the browser before passing the header line. There's no need for anything else in the .php file at all other than the header line. You will get this error if you try something like: <?php header("Location: ".$_GET['go']); ?> The ONLY thing in the file should be: <?php header("Location: ".$_GET['go']); ?> In the first example the browser gets sent before it gets the header info, which isn't allowed. Link to comment Share on other sites More sharing options...
Beaumonde Posted October 25, 2008 Author Share Posted October 25, 2008 Don't include any of the other crap in there, that should be the only line in the file. And say I wanted to put a delay on that and display a message? Stat Progress | Stat Averages | Stat Records Link to comment Share on other sites More sharing options...
Errdoth Posted October 25, 2008 Share Posted October 25, 2008 Don't include any of the other crap in there, that should be the only line in the file. And say I wanted to put a delay on that and display a message? Then use javascript? Meta-redirects are kinda blah, in my opinion. Last.fm Signature Overlays Link to comment Share on other sites More sharing options...
MageUK Posted October 25, 2008 Share Posted October 25, 2008 Redirecting you to <?php echo $_GET['go']; ?> Link to comment Share on other sites More sharing options...
Beaumonde Posted October 25, 2008 Author Share Posted October 25, 2008 Perfect. Thank you. BTW: Figured out why that little one kept appearing, you had to use <?php echo $_GET['go']; ?>. Stat Progress | Stat Averages | Stat Records Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now