Expand my Community achievements bar.

Creating new PDF's from the input of a form

Avatar

Level 4

I posted a similar message to this one about 3 months ago. I had to work on other projects and also learn more about the process to make this happen. In a nutshell, here's what I'm trying to accomplish:

  1. User downloads form from our website and fills it in. (dynamic form is complete)
  2. User clicks "Submit Form" button on form and XML data is sent to our server. (I'm currently learning about MySQL and PHP, not my forte)
  3. PHP script on server receives XML and adds input (field data) to database.
  4. Once that data has been input, another (or the same) PHP script will pull that data from the database and populate a pre-formatted PDF with it.
  5. Finally, the new PDF will be sent back to the user as an attachment to an email.

Does this sound like the way it should be done? If so, could someone with experience in doing this provide me with a rough sketch of the sorts of necessary components that will come into play so that I can create a list of things to learn? At this point, what I DO know is that the form will submit its information in XML format and be read by a PHP script. That's about it.

Thanks!

Graham

2 Replies

Avatar

Former Community Member

If it satisfies the requirements then it makes sense.  ;^)

I have not done PHP development but I am guessing you will need at least:

1) a PDF library for PHP to do data import/export

2) an XML library for parsing http://www.php.net/manual/en/refs.xml.php

3) and a MySQL database driver http://dev.mysql.com/downloads/connector/php-mysqlnd/

Steve

Avatar

Level 4

Thanks Steve, that's a start for sure!


Graham