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>
<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>