![]() |
Send Form through Email
Hello, I'm making somethign and it's like a contact form and when they clikc submit i need it to send the form to specifed email without lanuching outtlook like with mailto:blah@blah.com
Im just wabntign whren they clikc Submit ZAP its in my email. |
To avoid having the user's mail user agent send the form, you need to have their browser send it via HTTP:
:
<FORM action="/path/to/cgi/cgiscript.pl">Of course, that's the easy part. The more tricky part is that /path/to/cgi/cgiscript.pl is just an example - you need a CGI script or other server-side code to actually send the email. You can send emails from virtually any server-side scripting technology; a popular method is to use the sendmail command at the server side, though beware of security problems with shelling out from a CGI using data you've taken from a user-submitted form. Personally, I write my CGI scripts in Tcl and use the mime and smtp packages to send mail if I have to. There are various form to mail scripts available - see what languages and/or server side technologies your hosting supports and see if one exists - ideally a free one - for your platform. Hope this helps. |
You can look up bignosebird.com. They have a cgi script that will email forms for you as well. Probably easier than building your own.
|
| All times are GMT -5. The time now is 2:01 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC