Jump to content

Recommended Posts

I've been working on this project for awhile now but still can't get it to work so I'm turning to all of you for some help. I have made a PDF application with a HTTP submit button at the bottom. This submits to a php script that I have on my server. What I want to do is to take the submitted data and save it as an XML file on my server. I have been using the $_POST method to get the data sent to the script but it puts it in an array. I can't figure out from here how to make it into an XML file. Any suggestions?

 

Thanks, Paul

Link to comment
https://forums.phpfreaks.com/topic/63785-pdf-submit-and-_post/
Share on other sites

That helps give me some ideas but the string is all one cell in the array and there is no easy way to separate it. Is there something other then $_POST that I should be using to obtain the submitted data? Or is there something different that I need to do with the PDF submit button? Thanks, Paul

Link to comment
https://forums.phpfreaks.com/topic/63785-pdf-submit-and-_post/#findComment-317910
Share on other sites

Nothing else you can do that I can think of. You could use GET, but that would be even a bigger hassle.

 

Now, if you are the one creating the form and you are the one that will parsing the data, then you can simply set up the fields and the parsing to work how you need them. Every situation is different, but if you understand your data it shuldn't be that big of a deal.

 

For example, lets say I have 5 fields for children. I could name all the fields "children[]" and then the post data will contain a subarray for all the children values: $_POST['children'][0], $_POST['children'][1], etc.

Link to comment
https://forums.phpfreaks.com/topic/63785-pdf-submit-and-_post/#findComment-318122
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.