At 09:45 PM 2/11/2002 -0800, Mike wrote:
>I am creating a page with a form on it. I want it so that when people click
>submit, I want the information from the form to be emailed to me. Is there a
>way I can do this with normal JavaScripting or even plain HTML or would I
>have to use something like PHP.
>
>Thanks

The only way to do this without using a server-side script is to just have 
the form contents e-mailed.  If you make the form 
action="mailto:[EMAIL PROTECTED]"; I believe it will create a formatted e-mail 
message to send to you when the user clicks submit.  However, it is still 
left to the user to have their web browser e-mail configured properly and 
they then have to click send for it to go through.  If, say, the user uses 
Netscape Navigator and the default Netscape mail plug-in is Netscape Mail, 
but the user doesn't use Netscape Mail and hasn't actually configured it to 
send (because they haven't gotten around to it or whatever), then it will 
pop up the form to be e-mailed in Netscape Mail and the user won't be able 
to send it.  And, like I said, even if it goes to the right e-mail program, 
the user has to still click "Send".

These are some things to watch out for.  E-mail forms aren't generally 
used, especially by professional sites, because they're just too reliant on 
the user being hooked up correctly and proficient enough to send it 
through.  What a big assumption to make.  :)

-Mike


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to