Pop-window in form script

admin

Administrator
Staff member
New Here!<br />
<br />
I'm using a form script and I would like once the submit button is clicked have a pop-up window for my Thank You Message displayed.<br />
<br />
I'm using the following script - which by the way does the pop-window perfect but redirects the main brower page to a "this page can not be displayed message" any ideas on how to refine this form script to keep the main browser window where it's at and open the pop-up window?<br />
<br />
My form script:<br />
<br />
<form action="/cgi-bin/fmail.pl" method="POST" onSubmit="MM_openBrWindow('News_ViewsMain.htm','child52','scrollbars=no,width=350,height=280')"><br />
<div align="center"><br />
<input type="hidden" name="recipient" value="[email protected]"><br />
<input type="hidden" name="subject" value="News & Views"><br />
<input type="hidden" name="thankurl" value="http://www.hgh-best-results.com/News_ViewsMain.htm"><br />
<p><font color="#E4EBF1" size="1" face="Arial, Helvetica, sans-serif"> <br />
<input name="Name" size="13" maxlength="35" value="Your name"><br />
<br><br />
<br><br />
<input type="text" name="username" size="13" value="[email protected]"><br />
<br><br />
<br><br />
<input type="submit" value="Get it!" name="submit"><br />
</font> <br />
</div><br />
</form><br />
<br />
Thanks, and I appreciate any feedback!<!--content-->You could remove that popup when the user submits, therfore remove this bold:<br />
<br />
<form action="/cgi-bin/fmail.pl" method="POST" onSubmit="MM_openBrWindow('News_ViewsMain.htm','child52','scrollbars=no,width=350,height=280')"> <br />
<br />
and you could automatically open the popup when the thank you page loads (<!-- m --><a class="postlink" href="http://www.hgh-best-results.com/News_ViewsMain.htm">http://www.hgh-best-results.com/News_ViewsMain.htm</a><!-- m -->). So, on the thank you page, put this line in your <body> tag.<br />
<br />
<body onLoad="window.open('News_ViewsMain.htm','child52','scrollbars=no,width=350,height=280')"><br />
<br />
And you're done.<!--content-->action="/cgi-bin/fmail.pl"<br />
<br />
that file must not be in that spot then.<!--content-->Perhaps I was unclear in my explanation.<br />
<br />
I want to stay on the same page as the form script is on and once the user submits the form don't redirect to anthor page but instead have a pop-up window with my thank you message.<!--content-->if you don't submit the form then it will never run the maill program. you have to goto another page.<br />
<br />
or you make you popup do the work and then say thank you. then you will need to make that popup your fmail.pl, then that means re doing that so it displays the thank you message.<!--content-->
 
Back
Top