Jump to content

Printing Multiple Pages


derekmorgan

Recommended Posts

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

Edited by derekmorgan
Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.