Click to See Complete Forum and Search --> : E-Mail current Form With Java Script
clyde
05-12-2003, 01:56 PM
If anybody can help me I would appreciate it.
Can you email the current form via java script.
The email address will always be the same.
Thanks
clyde
You can do it with HTML by providing a mailto as the forms action, like so:
<form action="mailto:you@your.com" enctype="text/plain" method="post">
This will, however, popup an alert telling users that the form is being submitted through email. If you don't want this, you will need server side language. Try posting in our new PHP (http://forums.webdeveloper.com/forumdisplay.php?s=&forumid=16) forum for help, if you decide to go that method.
Nevermore
05-12-2003, 02:06 PM
It's possible - just set the action of the form tag to mailto: followed by the address. Using server side script, e.g. PHP or ASP would be better though, since it keeps your email address and theirs secret, and so spam-free.
Nevermore
05-12-2003, 02:07 PM
Sorry about double posting you, Pyro - you posted as I was writing...
:D
Not a problem cijori. I don't consider it a double post if the times are only minutes apart... ;)
Cheers!