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? Link to comment https://forums.phpfreaks.com/topic/92906-printable-version/ 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? Link to comment https://forums.phpfreaks.com/topic/92906-printable-version/#findComment-475939 Share on other sites More sharing options...
aebstract Posted February 25, 2008 Author Share Posted February 25, 2008 I'm not following you? Link to comment https://forums.phpfreaks.com/topic/92906-printable-version/#findComment-475944 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/ Link to comment https://forums.phpfreaks.com/topic/92906-printable-version/#findComment-475949 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? Link to comment https://forums.phpfreaks.com/topic/92906-printable-version/#findComment-475951 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.