468,247 Members | 1,317 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

Messy form solution

My web-form process input and sends it to me as mail. Fine. But I also would
love to have this input put onto a PDF-document which will be generated on
the fly during post. The PDF will be saved on my server AND mailed to
myself.
I thought that maybe it is possible to get the posted form input on a
csv-file on my web-server (I don't have MySQL). And then, during the process
get this csv data reorganised and to appear organised on a already nearly
finished PDF with prefixed header and footer. The document is mailed to me
and visible in the user window.
I have not invented the power and have to ask: is this possible, anyone who
knows if such a funcationality already exist?
Apr 27 '06 #1
2 1083
If you haven't already, have a look at www.fpdf.org. I don't see why a
script couldn't accomplish both tasks at the same time.

Apr 27 '06 #2
On Thu, 27 Apr 2006 14:03:11 +0200, John wrote:
My web-form process input and sends it to me as mail. Fine. But I also
would love to have this input put onto a PDF-document which will be
generated on the fly during post. The PDF will be saved on my server AND
mailed to myself.
Fine.
I thought that maybe it is possible to get the posted form input on a
csv-file on my web-server (I don't have MySQL).
Just remember to lock access to the file, you don't want two simultaneous
requests clobbering the file.
And then, during the
process get this csv data reorganised and to appear organised on a already
nearly finished PDF with prefixed header and footer. The document is
mailed to me and visible in the user window.
Look in to FPDI: http://fpdi.setasign.de/

That imports an existing PDF in to an FPDF object ready to add new
elements.
I have not invented the power and have to ask: is this possible, anyone
who knows if such a funcationality already exist?


It's possible using many ways of creating PDFs from PHP. Personally I've
been a fan of PDF4PHP, but you can't import your "nearly finished PDF" in
to that, so if I were you I'd look into FPDI.

Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

Apr 27 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Peter O'Reilly | last post: by
3 posts views Thread by Mike | last post: by
19 posts views Thread by zacks | last post: by
15 posts views Thread by Kevin Davis | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.