I’m working on a form that when it is submitted to me using mailto, I want the sender taken to a page that shows confirmation that the form was sent and also shows the information submitted.
I found the following in the DrWeb archive. I placed it in the head but it doesn’t work (I changed it with my information). It shows a box with the text “Enter your e-mail address”. I have a submit button as part of my form. This is as the script is shown.
I also removed the <!– –>
Any help would be appreciated.
<SCRIPT LANGUAGE=”JavaScript”>
<!–function doit()
{ document.moveme.submit();
document.location.href=”
–></SCRIPT>
<FORM METHOD=POST ACTION=”mailto:
NAME=”moveme” >
<INPUT TYPE=”text”
VALUE=”Enter your email address here”>
<SCRIPT LANGUAGE=”JavaScript”>
<!– document.write(‘<INPUT TYPE=BUTTON VALUE=”Go” onClick=doit()>’);
// –> </SCRIPT>
<NOSCRIPT>
<INPUT TYPE=Submit VALUE=”Go”>
</NOSCRIPT>
</FORM>