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
    Aug 2004
    Location
    Netherlands
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Seek script to open thank you page after submitting a mail-form

    HELP
    Because of stuborniss of provider I can't use the cgi-bin to send the mail-form I've build. I've solved that problem by using a mailto action, but now I need a script to open the 'thanks for filling out our form'page that has to open after submitting the form.

    Has anybody got such a script lying around?
    Thanx a million
    billow99

  • #2
    New Coder
    Join Date
    Dec 2004
    Location
    Portsmouth, UK
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could put your mailto link in the usual <a href='mailto:.....> area and then add an onclick to the image (or submit button, or whatever) like this:

    onclick="window.location='thankyou.htm'"

    That any good to you?

  • #3
    New to the CF scene
    Join Date
    Aug 2004
    Location
    Netherlands
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Unfortunately I don't think that will work. The submit button sends me the information that the user has put in 5 or 6 different form-fields (like name: email: etc) which is done with the formaction: mailto, and therefore is necessary. When I ad a behavior like onClick to that submit-button it will show the thankyou-page but will completely ignore the form-action mailto.

    Any other suggestions?
    billow99

  • #4
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    What if you added a call to a function that will open the thank you window to the form tag


    <form name="f1" onsubmit="thankyou_pop()">


    function thankyou_pop{

    window.open()

    }
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

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