www.webdeveloper.com
Results 1 to 4 of 4

Thread: Thank you Msg when submitting a form.

  1. #1
    Join Date
    Mar 2009
    Posts
    1

    Thank you Msg when submitting a form.

    Hi everyone,

    I am looking for the code that after a user clicks the submit button on a form, a Thank you message appears telling the user their request has been submitted and someone will contact them. This information is being sent to someone's email.

    If you would like to view the page, http://www.nqec.org/prayer.htm.

    Thank you.

  2. #2
    Join Date
    Sep 2008
    Location
    On the Interweb
    Posts
    125
    Quote Originally Posted by mbmartin813 View Post
    Hi everyone,

    I am looking for the code that after a user clicks the submit button on a form, a Thank you message appears telling the user their request has been submitted and someone will contact them. This information is being sent to someone's email.

    If you would like to view the page, http://www.nqec.org/prayer.htm.

    Thank you.
    Something like:

    Code:
    <html>
    <head>
    <script type="text/javascript">
    function display_alert()
      {
      alert("Thank you. Your request has been submitted. You will be contacted back soon.")
      }
    </script>
    </head>
    <body>
    
    <input type="button" onclick="display_alert()"
    value="Submit" />
    
    </body>
    </html>
    http://www.w3schools.com/js/js_popup.asp
    Last edited by Mayday; 03-10-2009 at 10:46 AM.
    "Why must I be surrounded by frikkin' idiots?!" - Dr. Evil

    "Remember: There are no stupid questions, only stupid people." - Mr. Garrison

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    That won't trigger if the user submits by hitting return. Nor will it trigger when the user isn't using JavaScript but this isn't exactly important. Use instead:
    Code:
    <form action="mailto:beel.zebub@hades.com" onclick="alert('Your soul will be processed in the order in which it was recieved')">
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Mar 2009
    Posts
    70
    I can make you a PHP page that matches your website really quickly if your server can support it. (it most likely does if your unsure)

    Just contact me with the email address that you'd like the form forwarded to.

    Email: rsfalah [at] hotmail.com
    MSN: kofalah [at] hotmail.com

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
  •  
HTML5 Development Center



Recent Articles