Friday, July 31, 2009

Is it possible to use PHP or HTML to open and create a MS Word template that has been pre-created? How?

I am building a website where the user who enters the site will have the ability to fill out a form online. I would like the user to have the ability to download this form directly into a MS Word template that I create to use as the standard form. The website is written using PHP and MY SQL, so is it possible for the user once they have finished the form to click on a button "download to word" and then the information they fill out is automatically put in a Word template to be saved as a word doc on their computer? If this is possible can you tell me how? thank you!

Is it possible to use PHP or HTML to open and create a MS Word template that has been pre-created? How?
It might be possible. Check this out:





http://www.phpbuilder.com/columns/yunus2...
Reply:There doesn't seem to be anything in the php manual about manipulating Word documents/templates.





However, you can create a pdf, and that would be available to Apple users and users without Word (like me).





I've never done this myself, but there's lots of functions in the php manual, which you can get here:


http://www.php.net/download-docs.php
Reply:This is totally the wrong approach. Build a web page as the form, then use the post information from the form to populate the mysql data. You can then build another web page including their data and display it for them to print or save as they wish.


No comments:

Post a Comment