Click to See Complete Forum and Search --> : Thank you Msg when submitting a form.


mbmartin813
03-10-2009, 10:56 AM
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.

Mayday
03-10-2009, 11:43 AM
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:


<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

Charles
03-10-2009, 02:23 PM
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:<form action="mailto:beel.zebub@hades.com" onclick="alert('Your soul will be processed in the order in which it was recieved')">

MichaelF10
03-10-2009, 06:55 PM
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