Submit to PHP

A common request in the comments on the HTTP Submit post is how to retrieve the values from PHP, so I’ve created a simple sample just to demonstrate that clearly.

PHP Submit Sample

This sample has a couple of text fields which, when submitted using either of the buttons on the form, echoes the text back to you by the PHP code on the server. The server code is also included in the form.

4 Responses to Submit to PHP

  1. Don McCahill says:

    Did you intend that the last word of the tutorial be ‘whose’?It looks like a line has dropped off.

  2. Thanks Don – I updated the form so it’s not cut off.

  3. Mark W says:

    This isn’t working for me, and I’m very good with PHP. The variables just don’t transmit. I did a ‘var_dump’ in PHP of the $_POST header and the only thing the PDF sends is an empty array labelled ‘form1′ and the actual repsonse from PHP looks like: array(1) { ["form1"]=> array(1) { [0]=> string(0) “” } }Can you please let me know how to fix this? I’m using Adober Designer 7.0 and it’s just never sending any of the variables no matter how many text field I put on the form. and the Submit button is setup properly since if I choose ‘XML’ or one of the other options PHP returns an empty array. So why is the PDF sending ‘form1′ but no variables??

  4. Paul says:

    Your URL-Encode submit part of the document is actually also doing a XDP post.Why is my post not working from other computers using URL-Encode? I am using classic ASP to retrieve the values with Request.Form, but it only seems to work when I send from my computer to the server. Any ideas?[It works from your computer but not from other computers? I don't know why that would be - check the server logs to make sure the data is coming through, and maybe add some logging to your ASP app to see what it's actually getting in those cases]