chet139 Posted March 2, 2008 Share Posted March 2, 2008 For the purpose of a page which will need to be printed, I want to open a new page open a click of a page. Current this is done by echo' <form action="orderInvoice.html" method="get"> <input type="submit" value="Invoice" /> </form> '; Which Just goes forward in browser. I would like the current window to remain the same, but a new to open. Any ideas? Link to comment https://forums.phpfreaks.com/topic/93986-forcing-new-page-instead-of-moving-forward-in-browser/ Share on other sites More sharing options...
shocker-z Posted March 2, 2008 Share Posted March 2, 2008 It's a HTML question realy but please see below echo' <form action="orderInvoice.html" method="get" target="_blank"> <input type="submit" value="Invoice" /> </form> '; just added target="_blank" Regards Liam Link to comment https://forums.phpfreaks.com/topic/93986-forcing-new-page-instead-of-moving-forward-in-browser/#findComment-481532 Share on other sites More sharing options...
monkeybidz Posted March 2, 2008 Share Posted March 2, 2008 So you want it to post to the same page and bring a popup new window? Link to comment https://forums.phpfreaks.com/topic/93986-forcing-new-page-instead-of-moving-forward-in-browser/#findComment-481548 Share on other sites More sharing options...
chet139 Posted March 2, 2008 Author Share Posted March 2, 2008 No it has to be a different page, but I would want to keep the current page open, so a new window. I will try shocker-z solution first. Thanks Link to comment https://forums.phpfreaks.com/topic/93986-forcing-new-page-instead-of-moving-forward-in-browser/#findComment-481668 Share on other sites More sharing options...
chet139 Posted March 2, 2008 Author Share Posted March 2, 2008 Yep, that works fine, in firefox however it opens a new tab, and in IE it opens a new window. any options for this? Link to comment https://forums.phpfreaks.com/topic/93986-forcing-new-page-instead-of-moving-forward-in-browser/#findComment-481679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.