Results 1 to 2 of 2

Thread: making forms dissapear
      
   

  1. #1
    Join Date
    Feb 2010
    Location
    lancashire, uk
    Posts
    18

    Default making forms dissapear

    im new to posting on this forums. so be nice!

    i am trying to create a form that gets all the information i require for marketing on my website. i want the form to open on each page i decide to include it. i want the form to look like a pop up. (sit on top of everything else). i have had a play around today and i can get the form to dissapear when they click submit button. i can also get the information they input sent to my email address. the only thing is i can not get these to work together. its 1 or the other.

    i want them to input there information, click submit, stay on the same page but the form dissapears and get all the information sent to my email address.

    all ideas welcome.

    i dont know if this is even possible.

    thanks in advance

    graham.

  2. #2
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,080

    Default Re: making forms dissapear

    Process your form as usually.
    Set it to redirect to the "success" page after form submission. Place this code in the page HTML, End of Body, of the "success" page (that will also appear in the popup):

    <script type="text/javascript">
    <!--
    window.setTimeout("window.close()",2000);
    //-->
    </script>


    2000 is 2 seconds. You can change it to whatever you like. However, some browsers will popup an alert window, asking confirmation for window closing, so you might as well simply add a "Close Window" button in your success page.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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