printable document from form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bubs
Forum Newbie
Posts: 11
Joined: Wed Aug 16, 2006 12:19 pm

printable document from form

Post by bubs »

does anyone know how I can take this script http://www.planet-source-code.com/vb/sc ... 8&lngWId=8 and use it to process a form? I look like it would be possible but I don't know how to add the variable from the form. I found this and would like to use it with the swift mailer to mail out as an attachment.

I don't know much about programing but am trying to learn while I work but It's not working out a well as I hoped. but this seems like it would be an easy task... I hope
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Although RTF is perfectly fine for many things, I may use PDF generation. Some libraries of interest for PDF generation are fpdf and ezpdf.

Either way is probably fine. You could even include both. -- What a concept! :D --. The article you linked is roughly a template variable injection function for existing RTF files and does include a facility to write it to a file. You should be able to adjust it to capture the output as a string or something without much difficulty. It does not actually generate the RTF file in itself however; instead it uses an existing one. There are other libraries for RTF available such as this which does a basic convertion from HTML to RTF.
bubs
Forum Newbie
Posts: 11
Joined: Wed Aug 16, 2006 12:19 pm

cool

Post by bubs »

thanks for the info

these should help out a lot
Post Reply