Web Analytics Made Easy -
StatCounter form pop up - CodingForum

Announcement

Collapse
No announcement yet.

form pop up

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • form pop up

    How do I show a 400/400 thank you pop up AFTER a form is submitted (email)

  • #2
    instead of having a submit button, have this code for the button



    <script>
    function processform()
    {
    pp = open("popup.html","pop","width=400, height=400");
    document.myform.submit()
    }
    </script>


    <form name="myform">
    <input type="button" value="send" onclick="processform()">
    </form>

    the thing is that this script will opoup the box but then it will submit the form so if you are using the mailto action then if the person refuses he will already ahve got the message and if you put it after then if you change to a php script or cgi/perl then it will send the form and the user will not get the message. in this case you ust leave it before. hopr that helps
    photoshop too expensive? use the GIMP! www.gimp.org

    Comment

    Working...
    X