PDA

View Full Version : Form Question



ace0
April 16th, 2001, 18:56
After you fill out a form, you hit a button like submit- how do you get that to email the form to you?

Koolguy
April 16th, 2001, 19:12
You can either do it like this:


<form action="mailto:you@yourdomain.com">

...or you could send it to a cgi or php script for mailing (better option)

ace0
April 16th, 2001, 20:04
why is the cgi option better?

jiminsd
April 16th, 2001, 20:15
Without the cgi option the browser will ask the sender if it is ok to send the email... looks rather poor. Besides with the "post" cgi method you will get the info from the form in a nice, easy-to-read format.

Simple nice script is Formmail

http://www.worldwidemart.com/scripts/formmail.shtml

ace0
April 16th, 2001, 20:57
so, how do you do this?

Canuckkev
April 16th, 2001, 21:01
Get a formail cgi script. Lots out there. OR go to cgiforme.com, or bravenet.com and I think they have remotely hosted formmail, so no need for a cgi-bin.

jiminsd
April 16th, 2001, 21:15
I have not use this one but it is in my bookmarks...

http://pages.hostedscripts.com/

ace0
April 16th, 2001, 21:36
how does it work?

LeX
April 17th, 2001, 16:10
You setup the script as instructed, upload it to a CGI-friendly host, chmod it, then use
<FORM action="formmail.pl" method="POST"> for your form.