r-it Posted March 5, 2007 Share Posted March 5, 2007 hey, can anyone help me with this, i have a page that works like this: it gets a saleid from the url and echos the sale items according to the sale id, the thing is i set the the body onload to window.print(). and the page cannot redirect after the print dialog box appears as output is sent before redirecting. If i were to put a link on the page, then it would show on the printed page, so i want it to redirect after the dialogbox. plz help Quote Link to comment https://forums.phpfreaks.com/topic/41235-solved-redirecting-after-windowprint/ Share on other sites More sharing options...
r-it Posted March 5, 2007 Author Share Posted March 5, 2007 somebody please :'( :'( :'( :'( Quote Link to comment https://forums.phpfreaks.com/topic/41235-solved-redirecting-after-windowprint/#findComment-199838 Share on other sites More sharing options...
Snooble Posted March 5, 2007 Share Posted March 5, 2007 you should never need to echo something before redirect. It's pointless. But if you want a time delay use a meta refresh. PLACE THIS IN HEADER: <meta http-equiv="refresh" content="10; URL=pagetoredirectto.php"> content is where you place the seconds to wait. that one waits 10 seconds and send to "pagetoredirecto.php" Snooble Quote Link to comment https://forums.phpfreaks.com/topic/41235-solved-redirecting-after-windowprint/#findComment-199842 Share on other sites More sharing options...
r-it Posted March 5, 2007 Author Share Posted March 5, 2007 l337 dude, thanks a lot, i didnt know what to do Quote Link to comment https://forums.phpfreaks.com/topic/41235-solved-redirecting-after-windowprint/#findComment-199849 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.