Jay2391 Posted February 4, 2007 Share Posted February 4, 2007 How can I sned a command that said when you finish running this code go to thei page... like a go to and play in flash kind of deal Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 4, 2007 Share Posted February 4, 2007 header('Location: page.php'); you can't have any output on the page for this to work. If you have output you need to use the meta-refresh tag. Quote Link to comment Share on other sites More sharing options...
Jay2391 Posted February 4, 2007 Author Share Posted February 4, 2007 don't understand what you are saying about OUTPUT didn't work Quote Link to comment Share on other sites More sharing options...
Jay2391 Posted February 4, 2007 Author Share Posted February 4, 2007 you mean like this ... header('Location: tourney_admin.php?tourney_id=$tourney_id'); all i want is when the code is finish runing to refresh the page...??? Quote Link to comment Share on other sites More sharing options...
Tandem Posted February 4, 2007 Share Posted February 4, 2007 He means that if there is anything outputted to the browser, such as HTML or text, in the script that is running then you cannot use header() and you'll have to use meta refresh tags. I'm not sure but i don't think you can put GET data into a header() though. Quote Link to comment Share on other sites More sharing options...
Jay2391 Posted February 4, 2007 Author Share Posted February 4, 2007 is there any refresh command out there...?? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 4, 2007 Share Posted February 4, 2007 If it didn't work, post your code and the errors you get. We can't help if you don't tell us what's wrong. Quote Link to comment Share on other sites More sharing options...
the_oliver Posted February 4, 2007 Share Posted February 4, 2007 you could try simply printing the HTML resrech code. Will work anywere in the code. echo "<meta http-equiv=\"refresh\" content=\"0;URL=http://www.something.com/index.php?auth=fail\">"; Quote Link to comment 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.