PDA

View Full Version : Cerate pdf from HTML/php?



1018 logoz
08-14-2007, 10:34 PM
Can anyone help me with how to fill out a pdf file use a HTML form? I have looked at a tutorial but had no luck. Using this for employees to fill time sheets and request online any help on code or a better tutorial then what I have found.

silentcollision
08-15-2007, 01:31 AM
Sorry, I'm not entirely understanding the question.

You want a dynamic PDF form to respond to users data? Why don't you just use a PHP form?

felgall
08-15-2007, 03:01 AM
If you want people to fill in a PDF form then it is much easier to set it up as a PDF form that they can enter the details into directly in the PDF itself rather than having the extra overhead of having to build the entire PDF from scratch in order to be able to substitute the fields from an HTML form into the appropriate places.

1018 logoz
08-16-2007, 09:51 PM
ye I can use a form pdf. but I would also store the info in a data base so that I can access it later when it comes report time.

charlesp
08-16-2007, 10:49 PM
If you want to store the information into a database use an html form and a php script to process it. That way when the users submit the form the information can be sent to the database automatically.:)

1018 logoz
08-16-2007, 11:30 PM
but how can i do both, provide them with a print out and also save in data base?

charlesp
08-17-2007, 07:52 AM
Have them print the html form and then click on submit to send the information to the database.

redsox9
08-17-2007, 08:11 AM
Another thought is that once a form has been completed and submitted, jump to a confirmation page that can be printed. In addition, there are also snippets of code that can take what information is vital and post it to a printable page.

I believe that it is possible to have this data saved into a pdf file but I guess as other people have discussed, what's the point if you don't need it and people can just print the information. Maybe also have the form data emailed to the user?

1018 logoz
08-22-2007, 11:24 AM
our should I create the form that I wnat to use with imgs backrounds and take the time to line the content up. This then will only call the content from the date base wnd fill out a "blank" form?