Click to See Complete Forum and Search --> : Submit Generated E-mail response


Tim Christensen
03-26-2003, 11:29 AM
I am a web design teacher but have a limited knowledge of javascript. I have a javascript based multiple choice test I would like my students to be able to take on line with a submit button at the bottom of the test. When the submit button is clicked, I would like to have the results of their selections to be sent automatically to my e-mail address. I know that is possible but what should I put in the script to make that happen? My submit button script look like this: <input type="submit" value="Submit" action="/cgi-bin/FormMail.pl">
I would appreciate any advice or feedback. Thank you.

Tim
christensent@rocketmail.com

DaveSW
03-26-2003, 11:49 AM
This is the basic way to make the form e-mail to you.

<FORM METHOD="POST" ACTION=mailto:___@________.com” ID="myform" enctype="text/plain">

</FORM>

Here's another thread where a php server side code is used. E-mailing forms using the above is slightly dodgy because some service providers apparently don't support it.

http://forums.webdeveloper.com/showthread.php?s=&threadid=6169

hope this helps

dave

Tim Christensen
03-26-2003, 04:33 PM
DaveSW:

Thank you for the input. I'm brand new to this list so forgive me if I am not doing all this according to protocol. I will work with what you've given me and see if I can get it all to work.

Tim