generate html file by PHP script
Posted: Tue Jan 10, 2012 9:00 am
Hi.
I am pretty new in PHP, I do more static HTML pages fom my self an for my friends.
I am using HTML form and PHP script to sent an email with data filled in form.
Now, I want to change PHP script to not sent data in mail body, but to save data to HTML file and then sent this HTML file as attachement. So the script should create HTML file with data form HTML form, save it on server and send the HTML file either as attachement or sent a link to this file on server. And of course, every file shoud be generated with unique name.
I spent days googling without any success. Do anybody have any idea, or know some page, where is written something more about this problem?
What I really need is to sent printable document to customer with data filled in HTML form all this by email. So if somebody have diffreent Idea as my, please, share it.
Thanks.
I am pretty new in PHP, I do more static HTML pages fom my self an for my friends.
I am using HTML form and PHP script to sent an email with data filled in form.
Now, I want to change PHP script to not sent data in mail body, but to save data to HTML file and then sent this HTML file as attachement. So the script should create HTML file with data form HTML form, save it on server and send the HTML file either as attachement or sent a link to this file on server. And of course, every file shoud be generated with unique name.
I spent days googling without any success. Do anybody have any idea, or know some page, where is written something more about this problem?
What I really need is to sent printable document to customer with data filled in HTML form all this by email. So if somebody have diffreent Idea as my, please, share it.
Thanks.