Click to See Complete Forum and Search --> : mailto submit problem


buddybear
09-16-2003, 09:49 PM
I'm trying to set up a form that when submitted the sender goes to a page that confirms the form was sent. I'm using the script below in the header and the problem is that the only part of the form that is sent to me is the box with the senders e-mail address. The sender is sent to the confirmation page as they should be. What is missing to have the entire form sent? Any help is appreciated.

<SCRIPT LANGUAGE="JavaScript">
<!--
function doit() {
document.moveme.submit();
document.location.href="http://www.XXXXX.com";
}
-->
</SCRIPT>
<FORM METHOD="POST" enctype="text/plain" ACTION="mailto:info@XXXXX.com" NAME="moveme" >
<INPUT TYPE="text" NAME="email" VALUE="Please enter your e-mail.">
<INPUT TYPE="BUTTON" VALUE="Go" onClick="doit()">
</FORM>

Khalid Ali
09-16-2003, 10:01 PM
This is not appropriate way to do it.
The best option will be to use server side language.

LindaQ
09-17-2003, 01:46 AM
I tried this endlessly with HTML and Java.

In the end, I picked up a PHP book, and found that this was a very easy language to learn, and it was very easy to create a form with a thank you/confirmation page.

Plus, the problem with the 'mailto' script, is that you are dependant on your Website Viewer to have an ISP based email program on their computer (ie: use Outlook Express with their ISP based connection, rather than Hotmail with a Web Based Email service). If they only have something like Hotmail on their computer, or they are browsing from an Internet Cafe, they cannot submit your form. I was surprised to see how many people went to my site with this same predicament.

I say, look at PHP, it will be your best bet, and you can learn it in a very short time from home.

Linda.