Click to See Complete Forum and Search --> : I need form submission help.


sox1331
02-06-2004, 09:11 PM
I'm very new with Javascript. I'm building a form in Dreamweaver, but I'm having problems getting it to submit. I want it to take all the information in the fields and send it to my email address. I was told that this script does that:

<input type="button" value="Submit" action="John@Doe.com">

I tried it and it doesn't even send an email. I click the button and does nothing. I have a feeling I have to write in which fields I want to go in the email, but I wouldn't know how to do that. Anyway, if anyone can help me I'd appreciate it. Remember to simplify because I'm still learning this stuff. :)

Khalid Ali
02-06-2004, 09:15 PM
action is form elements attribute

use the following it will do it

<form name="myform" action="mailto:mymail@email.com" method="post" enctype="text/plain">

sox1331
02-06-2004, 09:26 PM
I already tried that. It doesn't do what I want. It just says my email address will be revealed and creates a new email. I want everything that the user types in on my form to be sent to my email address with all the information on it. I'm trying to explain it the best I can.

Paul Jr
02-06-2004, 10:04 PM
Hmmm... If I'm understanding you, you just want the form filled out, and then the contents of the form e-mailed to you "behind the scenes", yes? If so, you're going to need to do this with a ServerSide Language. You could use PHP, Pyro's got a nice e-mail script in PHP located here (http://www.webdevfaqs.com/php.php#mailer). If this is not the case, you'll have to explain a bit more.

sox1331
02-06-2004, 11:26 PM
That's exactly what I wanted. Thank you so much.