View Full Version : open window on form submit

billy talent
07-20-2005, 02:27 PM
Hi guys,

I'm using a mailing list form on my site which is embedded as standard into every page, the problem is that when someone signs up it diverts them to a thankyou page, my question is, is it possible to open a popup window to show the thankyou confirmation page when the user clicks 'submit' so that they dont get taken away from the page they are currently looking at, the code I'm using is below, can anybody tell me if this is possible and how I can do it?

many thanks for your time!
<form name="mailing-list" method="post" action="http://pub11.bravenet.com/elist/add.php">
<b></b>sign up to our mailing list</b> : - name:
<input type="text" name="ename" maxlength="60" />
<input name="emailaddress" type="text" size="29" maxlength="100" />
<input type="hidden" name="usernum" style="border: 0px solid black; height: 0px; width: 0px;" value="927529594" /><input type="hidden" name="cpv" style="border: 0px solid black; height: 0px; width: 0px;" value="1" />
<input type="submit" name="Submit" value="submit">

07-20-2005, 02:36 PM
onclick="window.open('http://bob.com/thankyou.html')" to your submit button?

billy talent
07-20-2005, 05:10 PM
hey thanks for that, my only problem is that it is still going to the confirmation page on the existing webpage, as well as the pop up :mad: dumb computers!

07-20-2005, 05:36 PM
Perhaps your http://pub11.bravenet.com/elist/add.php page is doing a redirection of it's own??