Page 1 of 1
PHP and PFD File Submitting
Posted: Mon Jul 23, 2007 5:26 pm
by littlemetz85
Hi, I am creating a PDF form that will submit the data via http. I can't figure out the php code to accept the data and then save it on my server. I would like the data to come in as XML but any way it gets there would work. Thanks for your help.
Posted: Mon Jul 23, 2007 6:02 pm
by superdezign
In what format does the PDF post the information?
Posted: Mon Jul 23, 2007 6:26 pm
by littlemetz85
It will post it in xml.
Posted: Mon Jul 23, 2007 6:44 pm
by superdezign
The you could use the PHP
DOM in order to parse and process the XML data.
Posted: Mon Jul 23, 2007 7:31 pm
by littlemetz85
The problem is that I am fairly new with PHP and therefore I have no clue where to even start. This DOM function looks good but I would have no clue how to use it. Any other advise would be great, or some code to get me started. Thanks.
Posted: Mon Jul 23, 2007 8:30 pm
by Benjamin
Have a look at the XML parser functions. There are some examples on that page as well.
Give it a go and if you get stuck let us know.
http://www.php.net/manual/en/ref.xml.php