« Submit Format | Main | Flex 2 is Done! »

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.

Comments

Did you intend that the last word of the tutorial be 'whose'?

It looks like a line has dropped off.

Thanks Don - I updated the form so it's not cut off.

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??

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)