3 Replies Latest reply on Jun 2, 2011 2:54 PM by roc524

    this.submitForm() -- problem with my cgi script

    roc524 Level 1

      Thanks to George Johnson for an earlier answer to a related issue with this.submitForm.


      I am trying to use this.submitForm as per Example 1 on p. 348 of "JavaScript for Acrobat API Reference" document.


      To avoid any restrictions with my web hosting service, I am using the following JavaScript (on my form's Submit button) on my local XAMPP server:
      this.submitForm ("./cgi-bin/myscript.cgi");


      My question involves what should be in the myscript.cgi file before I submit to it.  If there is no file to start with, the

      submission will result in a "File not found" error.  So I guess I need the myscript.cgi file in the cgi-bin folder to begin with.

      When I put in a blank myscript.cgi file in that folder (hoping the submission will overwrite it), I can the following message:


      Server error!  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or

      there was an error in a CGI script.


      Can you tell me what is happening?  What should my original myscript.cgi have in it, if anything?