aebstract Posted February 25, 2008 Share Posted February 25, 2008 I have a confirmation page, which displays all of the information from the users order via $_POST variables. I want it so that the user can click a "printable version" link and it popup in a blank white page with all the information so that they can print it out. Is there any way to get this information to the popup page (from checkout.php to confirmation.php) without setting a session, or is setting a session going to be the only route? Quote Link to comment Share on other sites More sharing options...
revraz Posted February 25, 2008 Share Posted February 25, 2008 Why not just use CSS to determine the type of output? Quote Link to comment Share on other sites More sharing options...
aebstract Posted February 25, 2008 Author Share Posted February 25, 2008 I'm not following you? Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 25, 2008 Share Posted February 25, 2008 my fav <form> <input type="button" value="Print this page" onClick="window.print()"> </form> javasript way http://www.javascriptkit.com/howto/newtech2.shtml css way http://www.alistapart.com/stories/goingtoprint/ Quote Link to comment Share on other sites More sharing options...
aebstract Posted February 25, 2008 Author Share Posted February 25, 2008 The form has to run through a script, checking if everything is there, etc etc. If the order they place is valid, then they are allowed to see the confirmation page. Wouldn't this last bit just throw up the print page immediately? Or am I still confused? 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.