Hi,
I have a form which requires validation. If it passes, the form contents are emailed to me AND it redirects to another page, much like a page which asks for your email address before allowing you access to the goodies inside the site.
My validation is fine using a function, but I'm having trouble mailing the form and redirecting the page at the same time.
My form tag for emailing would be:
<form onSubmit="return validateform(this)" name="form1" method="post" action="mailto:me@myaddress.com" enctype="text/plain">
,and my form tag for redirecting would be:
<form onSubmit="return validateform(this)" name="form1" method="get" action="access_granted.htm">
,but I need a method of incorporating the two actions. Any help greatly appreciated.
BDC.
I have a form which requires validation. If it passes, the form contents are emailed to me AND it redirects to another page, much like a page which asks for your email address before allowing you access to the goodies inside the site.
My validation is fine using a function, but I'm having trouble mailing the form and redirecting the page at the same time.
My form tag for emailing would be:
<form onSubmit="return validateform(this)" name="form1" method="post" action="mailto:me@myaddress.com" enctype="text/plain">
,and my form tag for redirecting would be:
<form onSubmit="return validateform(this)" name="form1" method="get" action="access_granted.htm">
,but I need a method of incorporating the two actions. Any help greatly appreciated.
BDC.