Clear a form after Submitting & Confirming

liunx

Guest
Hi there,<br />
<br />
I have been trying to find a way to clear a form after the details have been submitted to an autoresponder and a confirmation popup window informs the user that they need to respond to a subscription email. The confirmation popup window has a [Close Window] prompt and<br />
it's after the confirmation window is closed that I want to clear the<br />
details in the form on the main window.<br />
<br />
I'm just using the following function to popup a couple of windows and standard html code, nothing fancy. The CGI script does all the subscribing and error checking but I don't know how to clear the details after the confirmed window has been closed and the focus comes back to the main web page.<br />
<br />
function popupXY(fileName) {<br />
window.open fileName, 'window2', "height=450,width=450,top=75,left=175,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,ti tlebar=no,toolbar=no,directories=no");<br />
}<br />
<br />
<td valign="top"><br />
<form name="subscription" action="http://www.getresponse.com/cgi-bin/add.cgi" method=POST target="window2"><br />
<br />
<input type="hidden" name="category1" value="testall"><br />
<br />
<input type="hidden" name="confirmation" value="http://www.healthfitnessandweightloss.com/confirm.html"><br />
<br />
<input type="hidden" name="error_page" value="http://www.healthfitnessandweightloss.com/suberrs.html"><br />
<br />
<input type="hidden" name="misc" value=""><br />
<input type="hidden" name="ref" value="000"><br />
<br />
<center><br />
<b><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><br />
<font color="#FFFFFF"><br />
<b>SignUp For The FREE "<u><font color="#FFFFFF"><br />
Lose<br /> All The Weight<br />
</font></u>" Newsletter Today<br />&nbsp;</b></font><br />
<br><br />
<div align="left"><br />
<font size="-2" face="Verdana, Arial, Helvetica, sans-serif" font color="#FFFFFF">First Name:</font><br />
<input type="text" name="category2" size="16"><br />
<br><br />
<font size="-2" color="#FFFFFF">Primary Email:</font><br />
<input type="text" name="category3" size="16"><br />
</font></b><br /><br />
<br /><br />
</div><br />
<center><br />
<br />
<input type="SUBMIT" name="submit" value="Sign me up ?quot; onClick="exit=false, popupXY('wait.html')"><br />
<br /><br />
<br />
<font color="#FFFFFF" size="-2" face="Verdana, Arial, Helvetica, sans-serif"><b><br><br />
You can unsubscribe yourself at anytime</b></font><br /><br />
<font color="#FFFFFF" size="-2" face="Verdana, Arial, Helvetica, sans-serif"><b><br><br />
We Respect Your <br />Email Privacy!</b></font><br /><br />
<font size="-1" face="Verdana, Arial, Helvetica, sans-serif"><br /><br />
<b><font color="#000000" size="-2"><img src=http://www.webdeveloper.com/forum/archive/index.php/"redline.gif" width="125" height="7"></font></b></font><br />
</center><br />
</form><br />
</td><br />
<br />
I would really appreciate it if someone could help me. I am a html and javascript dummy.<br />
<br />
Regards<br />
Mark<!--content-->You should be able to use Javascript. Try posting this question in the JavaScript forum.<!--content-->Ok, thanks Greg.<!--content-->
 
Back
Top