Click to See Complete Forum and Search --> : form handling: email results *and* load confirmation page


coco11
11-03-2003, 06:44 PM
Can someone please explain to me how I can modify this code so that the info filled out in the form is emailed to me and then a confirmation page is loaded when the user clicks submit?? It seems I can set up the form to do one or the other but not both. Please help!

<form action=mailto:myemailaddress@me.com encType=text/plain method=post onsubmit="return handlesubmit();" name=form1>

form fields here...

<input type=button onCLick="handlesubmit()" value=" Submit "> <input type=reset value=" Reset ">
</form>

<script language="JavaScript">
function handlesubmit()
{
document.form1.action= "confirmpage.html";
}
</script>

pyro
11-03-2003, 06:59 PM
You would be far better off using server-side code to do this. If your server supports PHP, take a look at http://www.webdevfaqs.com/php.php#mailer.