October 25, 200817 yr Author 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
October 25, 200817 yr <?php header("Location: ".$_GET['go']); ?> should work just fine. Last.fm Signature Overlays
October 25, 200817 yr Author <?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
October 25, 200817 yr <?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
October 25, 200817 yr <?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.
October 25, 200817 yr Author 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
October 25, 200817 yr 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
October 25, 200817 yr Author 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
Create an account or sign in to comment