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 Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/ 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. Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/#findComment-176996 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 Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/#findComment-177013 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...??? Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/#findComment-177014 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. Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/#findComment-177019 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...?? Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/#findComment-177031 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. Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/#findComment-177063 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\">"; Link to comment https://forums.phpfreaks.com/topic/37061-send-to-a-page/#findComment-177091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.