Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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>

  • #2
    Regular Coder zro@rtv's Avatar
    Join Date
    Feb 2005
    Location
    on the network
    Posts
    433
    Thanks
    0
    Thanked 1 Time in 1 Post
    add
    Code:
    onclick="window.open('http://bob.com/thankyou.html')"
    to your submit button?
    Last edited by zro@rtv; 07-20-2005 at 03:39 PM. Reason: specific
    ._-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

  • #3
    New to the CF scene
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #4
    New Coder
    Join Date
    Feb 2005
    Location
    Ontario Canada
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •