PHP and PFD File Submitting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
littlemetz85
Forum Newbie
Posts: 10
Joined: Mon Jul 23, 2007 5:23 pm

PHP and PFD File Submitting

Post 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.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

In what format does the PDF post the information?
littlemetz85
Forum Newbie
Posts: 10
Joined: Mon Jul 23, 2007 5:23 pm

Post by littlemetz85 »

It will post it in xml.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

The you could use the PHP DOM in order to parse and process the XML data.
littlemetz85
Forum Newbie
Posts: 10
Joined: Mon Jul 23, 2007 5:23 pm

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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
Post Reply