Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-20-2005, 02:27 PM   PM User | #1
billy talent
New to the CF scene

 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
billy talent is an unknown quantity at this point
open window on form submit

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!
simon
Code:
<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" />
      email:
      <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">
      </form>
billy talent is offline   Reply With Quote
Old 07-20-2005, 02:36 PM   PM User | #2
zro@rtv
Regular Coder

 
zro@rtv's Avatar
 
Join Date: Feb 2005
Location: on the network
Posts: 433
Thanks: 0
Thanked 1 Time in 1 Post
zro@rtv is an unknown quantity at this point
add
Code:
onclick="window.open('http://bob.com/thankyou.html')"
to your submit button?
__________________
._-zro
zro@redtv
zro.redtv.org

"If HTML and the Web made all the online documents look like one huge book, RDF, schema, and inference languages will make all the data in the world look like one huge database"
-Tim Berners-Lee, Weaving the Web, 1999

Last edited by zro@rtv; 07-20-2005 at 02:39 PM.. Reason: specific
zro@rtv is offline   Reply With Quote
Old 07-20-2005, 05:10 PM   PM User | #3
billy talent
New to the CF scene

 
Join Date: May 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
billy talent is an unknown quantity at this point
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 dumb computers!
billy talent is offline   Reply With Quote
Old 07-20-2005, 05:36 PM   PM User | #4
channy
New Coder

 
Join Date: Feb 2005
Location: Ontario Canada
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
channy is an unknown quantity at this point
Perhaps your http://pub11.bravenet.com/elist/add.php page is doing a redirection of it's own??
__________________
Channy

I would love to change the world, but they won't give me the source code...
channy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:55 AM.


Advertisement
Log in to turn off these ads.