I have an HTML/PHP form that needs to get converted to a PDF or image file and would like it to be stored into an SQL Database on submission. How would I go about doing this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can send it to a php script via the ‘action’ attribute on the form and generate the pdf file on the server. Then you can either save the pdf location on the database, or save the whole pdf as a BLOB type.
Some reference:
http://php.net/manual/en/book.pdf.php
http://dev.mysql.com/doc/refman/5.5/en/blob.html