syntheticstar
06-04-2009, 01:52 AM
<form name="contact" action="http://www.sureazure.com/gdform.php" method="post">
<input type="hidden" name="subject" value="SureAzure.com Information Request" />
First Name <input name="01_First_Name" type="text" size="25" /><br />
Last Name <input name="02_Last_Name" type="text" size="25" /><br />
<a href="javascript:loadXMLDoc('home.txt');document.contact.submit();">Submit </a><br />
<a href="javascript:document.contact.reset()">Reset</a>
</form>
What am I doing wrong guys? I've tried it a dozen different ways and I can't seem to get the syntax right. This form is in a text file inserted into a div. Once the form is submitted, it is supposed to load a different text file into the div (ex: "Thanks for submitting the form! Now go away and do something else mindless on the interweb!") If I only use one of the functions (submit() or loadXMLDoc()), it works the way it is supposed to. How do I get both functions to work properly together? Any help in this matter is greatly appreciated!
- Anthony
<input type="hidden" name="subject" value="SureAzure.com Information Request" />
First Name <input name="01_First_Name" type="text" size="25" /><br />
Last Name <input name="02_Last_Name" type="text" size="25" /><br />
<a href="javascript:loadXMLDoc('home.txt');document.contact.submit();">Submit </a><br />
<a href="javascript:document.contact.reset()">Reset</a>
</form>
What am I doing wrong guys? I've tried it a dozen different ways and I can't seem to get the syntax right. This form is in a text file inserted into a div. Once the form is submitted, it is supposed to load a different text file into the div (ex: "Thanks for submitting the form! Now go away and do something else mindless on the interweb!") If I only use one of the functions (submit() or loadXMLDoc()), it works the way it is supposed to. How do I get both functions to work properly together? Any help in this matter is greatly appreciated!
- Anthony