title: Submitted a PDF form to a PHP script only works in Adobe Reader XI
body: <p>I have a PDF form that I want to submit to a remote php script. I thought I had it working but it seems only to be working when viewing the form in Adobe Reader XI. The submit button just doesn't seem to do anything in Adobe Reader 10 or in the Previewer on Mac. This is the javascript I have the button execute when it is clicked. It submits the entire PDF and also passes the email address and name for validation against a record in the database that the php script communicates with.</p>
  
  <pre><code>var email = getField("Your email").valueAsString;
  
  var name = getField("Your name").valueAsString;  // get name field
  name = name.replace(/(^[\s]+|[\s]+$)/g, '');        // trim spaces 
  name = name.replace("'", "\\'");                    // change O'Neil to O\'Neil 
  name = "'"+name+"'";
  
  email = email.replace(/(^[\s]+|[\s]+$)/g, '');  
  
  console.println("Your Plan is Being sent");
  
  this.submitForm({
  cURL: "http://example.com/thescript.php?name="+name+"&amp;email="+email,
  cSubmitAs: "PDF"});
  </code></pre>
  
  <p>Is there some syntax here that just isn't compatible with certain pdf readers? Any advice would be greatly appreciated.</p>