Hi there, I have a form that submits to a PHP script that deposits the form data into a MySQL database. I use submitForm() as the method as such:
submitForm({ cURL: "http://server.com/script.php#FDF", aFields:null, cSubmitAs: "HTML"});
On Windows, both Acrobat Pro and Reader submit to the database without issue.
On a Mac, only Acrobat Pro submits successfully. Reader accesses the page, and receives the FDF response I have at the end of the script, but nothing is being passed.
I've set up a catch on the PHP script to e-mail me all variables being sent, both GET and POST, as well as some other information. Reader gives me the user-agent: AcroForms, and Pro gives me a browser user-agent response, Mozilla for Windows and Safari for Mac. So it isn't an issue with reader on Windows, because it sends an AcroForm response with POST data, but the reader on the Mac only sends an AcroForm response, but no data.
I've scoured the Javascript API reference for the submitForm for any gotcha that may be Mac exclusive, but got nothing. I have also tried removing the #FDF from the end of the cURL, thinking maybe the Mac interpreted it as how to send it in an FDF rather than url-encoded HTML, but that came back with an empty response as well.
Is there some special way to send POST data that I'm missing? By default bGet is false.
Edit: Another thing I've just tested was on Mac, opening the PDF file in Safari, the form submitted, but gave me an error message that I needed the #FDF at the end of the URL, so I went back, put it in, and it worked. But it still doesn't work in Reader on Mac.
George