Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 6 of 6
  1. #1

    Join Date
    Apr 2002
    Posts
    2,772
    DNF$
    3,004
    Bank
    0
    Total DNF$
    3,004
    Donate  

    Forms and popups

    Does anyone know how to have your redirect page (after submitting a form) popup rather than a large page with little content?

    I've looked at w3schools.com and htmlgoodies, but no luck...

  2. #2
    Platinum Lifetime Member
    NameTower's Avatar
    Join Date
    Apr 2003
    Location
    .ca
    Posts
    2,941
    DNF$
    1,029
    Bank
    0
    Total DNF$
    1,029
    Donate  
    its just the script your using
    if you show me i would probably know in any language
    look for a javascript for a popup script
    find that HTML where you enter bthe text afetr the form is submited and POP it UP!

  3. #3
    Platinum Lifetime Member
    Whois-Search's Avatar
    Join Date
    Apr 2002
    Posts
    3,123
    DNF$
    1,296
    Bank
    0
    Total DNF$
    1,296
    Donate  
    I think you use "#" on the form action post and have a pop up :

    http://javascript.internet.com/gener...up-window.html

    then have your mailback on that page :


    <?php

    mail("your@email.com", "Your subject",

    "Name: $_POST[name]

    Email: $_POST[email]

    Comments: $_POST[comments]

    ");

    ?>



    <html>
    <head>
    <title>Message Sent</title>
    <body>
    <center>
    <font face="Verdana" size=5>
    <br>
    <br>
    <br>
    <br><b>Message sent !</b>
    <br>
    <br>
    <br>
    <br><a href="yourlink.html">Close</a>
    <center>
    </body>
    </html>

  4. #4
    Platinum Lifetime Member
    Steen's Avatar
    Join Date
    Mar 2003
    Location
    White Rock, BC
    Posts
    4,892
    DNF$
    2,042
    Bank
    0
    Total DNF$
    2,042
    Donate  
    ???

    What are you guys talking about?

    I am not sure what you want.

    Maybe this is just above me..

    Get an eNom resellers account free and instantly,
    click here - Automated Signup!

  5. #5

    Join Date
    Apr 2002
    Posts
    2,772
    DNF$
    3,004
    Bank
    0
    Total DNF$
    3,004
    Donate  
    I have a form on Seagoville.com which redirects to http://seagoville.com/thankyou.htm after it has been submitted.

    I would like to just have the thankyou.htm page popup after the form is submitted, instead of being transferred to a new page. I'm sure it can be done, but will probably just leave it the way it is.

    Thanks for everyone's help...

  6. #6
    Gold Lifetime Member

    Join Date
    Jan 2003
    Location
    Washington D.C.
    Posts
    73
    DNF$
    529
    Bank
    0
    Total DNF$
    529
    Donate  
    are you using a cgi mail script like 'formmail.cgi'?

    The above php example and other ways would be simpler, but if limited to cgi access and knowledge of the formmail.cgi stuff it can still be done easily.

    If so, the formmail script should have a redirect 'target' value that can be set, which can be set to the NAME of a new window you can pop up during the submit process. The scripts default target is the self window which is why you get the thankyou wiping out your page.

    If so, change the onsubmit function in your mail form html to a function that pops open the window you want and NAME it, ie: mailWin=window.open("", "mailsent", WinProps); where 'mailsent' becomes the new windows name. In that function immediately after the new window pop, let the submit go, don't forget the 'return true' at the end. Now in the formmail script itself add a line, or in the mail form itself set a hidden value of 'target="mailsent"'.

    An example, my site uses a little palmtop as the user interface, and on submit of mail I needed the sent confirmation (the thankyou) to return in the palm top screen ( an Iframe, just like a new window, with a name=target), instead of wiping out my palmtop completely with a thankyou page replacing it! I did use the typical formmail.cgi with these modifications.

    http://www.choicenames.com/index.html?mail


    good luck.

Bookmarks

Posting Permissions

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

Domain name forum recommended by Domaining.com