derekmorgan Posted August 6, 2013 Share Posted August 6, 2013 Good morning, I need some help with creating sort of a Print All button for a PHP/MySQL application. I have a table that displays a list of form results from my database on a search page. Using javascript, I give the user the ability to access each individual form by passing an id variable to a form page when they click on a row. Currently, the user would have to click on each row, get redirected to the form page and then print the page. I would like to give the user the ability to search, and then simply click a print button that will print out all of the forms. Could someone point me in the right direction? I've searched quite a bit, but all I can find are examples of pagination for printing out query results, which is a little different than what I'm trying to accomplish. Thanks, Derek Link to comment https://forums.phpfreaks.com/topic/280896-printing-multiple-pages/ Share on other sites More sharing options...
AbraCadaver Posted August 6, 2013 Share Posted August 6, 2013 Just have a button or link, that when clicked opens a new print_all.php. Loop through the results just as you do on the results page, except echo out the form with the data each time through the loop. You're doing the same thing except echoing out the form instead of a table row. Link to comment https://forums.phpfreaks.com/topic/280896-printing-multiple-pages/#findComment-1443702 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.