05-02-2006, 04:05 AM
I have a set of 20 html forms pages that when completed comprise
a home inspection report. Is it possible to print all files with a single click?
05-02-2006, 04:43 AM
Hmm I don't think so. You may be able to get the print prompt open but you can't force a print on the user unless this is like on your own local system.
05-02-2006, 05:09 AM
This is strictly local, for use by individual home inspectors, not for public consumption. The idea is to consolidate all 20 files into a master docuement (PDF) to be printed, emailed to client, and last but not least stored in the database. We basically want but a snapshot of the forms, NOT the data itself. Once a report is completed (all the pretty little boxes checked and printed) we get paid and have no use for the data ever again. Wondering if it might be possible to save data from all forms in a cookie???
05-02-2006, 05:23 AM
No a cookie has a size limit. This is what I would do. Collect all of the info. Once collected have some server side script make a pdf file. I'm pretty sure php can make pdf files, may have to look into that. Then have the pdf file created emailed. I'm not sure how you will do the printing though. I don't know if php has the ability to actually print files.
05-02-2006, 05:30 AM
Yeah I have several flavors of php code for making pdf's. Don't know myself about printing from php, but why not just print the pdf? No clue at present as to how to gather the data into the script but I think you've got the right idea. Worried though -- given a size limit for cookies -- what to do with the data untill the report is completed. It is rare that one completes an entire form in one fell swoop. We need to bounce back and forth between the froms several times before all data is gathered. Was counting on use of session cookies to hold until completion.
05-02-2006, 05:32 AM
Look into forms across multiple pages. I'm not sure how those work though or put all 20 pages on one page?
05-02-2006, 05:48 AM
I'll look into it. I thought (ever so briefly) about consolidating the forms into one file but at 1600 lines apiece off a master temlpate... well I'm ascared!!!:eek:
It, would reqire a major re-think and... oh -- hundreds of hours I'm sure!:(