Put this JavaScript below the form of step 2. It will automatically submit the form to the form handling CGI program.
The JavaScript is assuming the form’s name is “MyForm”. If you change the name of the form in step 2, the name will also need to be changed in this JavaScript. (The name is between two periods on the second line.)
<script type=”text/javascript” language=”JavaScript”><!–
setTimeout(“document.MyForm.submit()”,1000);
//–></script>
The setTimeout() function is used to wait a second, to ensure all cookie actions have had time to complete, before automatically submitting the form.
At this point, you have a web page composed of the code in each of the first three steps. When this web page is loaded, it will automatically submit the form to the form handling program.
Load the web page into your browser now to verify it works as it should.
Troubleshooting —
If the form isn’t submitted, there may be a JavaScript error. The Firefox browser from http://www.mozilla.org/products/firefox/ is also an excellent JavaScript
If the form is submitting, but the form handling program gives an “Internal Server Error,” see http://willmaster.com/internalservererror
If the form appears to be running okay, but no email arrives, see http://willmaster.com/emaildebug
When the web page automatically submits the form and you receive email from the form processing program (whether or not cookie information is included), go to the step 4, the last step.
No comments :