Click to See Complete Forum and Search --> : Auto Clear Form Fields After Submitting


Dogstar20
07-01-2008, 01:17 PM
I created a form within site page using Dreamweaver. Everything is working fine (the target user fills out form information and clicks submit) but after they submit the form the fields do not clear. Not a big issue but some users keep hitting submit thinking that the form is not submitting correctly (even though a separate page opens and shows them the info they submitted and tells them it was submitted successfully).

Here is the form code currently in pace.

<form action="http://pinecityclass69.com/cgi-bin/FormMail.pl" method="get" name="Home Page Form" target="_self" id="Home Page Form">
<p>
<label>Additional Information
<textarea name="Looking for Additional Information" id="Looking for Additional Information" cols="50" rows="5"></textarea>
</label>
</p>
<p>
<label>
<input type="submit" name="Home Page Submit Button" id="Home Page Submit Button" value="Submit" />
</label>
<input type="hidden" name="recipient" value="reunion@pinecityclass69.com" />
</p>
<p>&nbsp;</p>
</form>

ryanbutler
07-01-2008, 04:01 PM
Not sure if this will cure the problem, but you don't want a method of get, you want a method of post. Plus, the form mail script you're using, unless you're using an updated version, is extremely vulnerable to attack. If that doesn't cure it you could try this method.

http://www.webmasterworld.com/forum91/86.htm

Listed as the last thread.

LeeU
07-02-2008, 01:04 PM
Dogstar20: Other thread removed; as Ryan mentioned, please don't cross post.