If you are using Formmail below are some tips to help you get started.
1)If you want to receive the info, in your Form Tag, add:
<INPUT TYPE=hidden NAME="recipient" VALUE="name@your domain.com"> to your Form.
2)If you want to redirect someone to another page of your site, after filling in the above details use:
<input type=hidden name="redirect" value="name.html">
in your Form
3)If you want them to fill in the required box for certain requirements use:
<input type=hidden name="required" value="name,position,company,address,tel,email,state,zipcode,country"> in your Form.
4)If you want the form to point to the cgi/perl script on your server use:
<FORM METHOD=POST
ACTION="http://www.yourdomain.com/cgi-bin/formmail.cgi">
in you Form
5)After someone has filled in the info, that person will have to click "submit" and the Form will be processed by your script on the server. Use the following in your Form:
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
Use of Form Tag to get info from someone is quite simple to implement for your html page and designing the format/layout is up to you.
The Formmail script can be downloaded at:
http://www.worldwidemart.com/scripts/
Below is a basic example that you can use to get info from someone and send it all to you(recipient)
<FORM METHOD=POST ACTION="http://www.yourdomain.com/cgi-bin/formmail.cgi">
<input type=hidden name="required" value="name,position,company,address,tel,email,state,zipcode,country">
<INPUT TYPE=hidden NAME="recipient" VALUE="name@yourdomain.com">
<input type=hidden name="redirect" value="redirect_page.html">
Name
<INPUT TYPE="text" NAME="name" MAXLENGTH=100> <BR>
<P>
<INPUT TYPE="text" NAME="position" MAXLENGTH=100> <BR>
<P>
Company
<INPUT TYPE="text" NAME="company" MAXLENGTH=100> <BR>
<P>
Address
<INPUT TYPE="text" NAME="address" MAXLENGTH=100> <BR>
<P>
State
<INPUT TYPE="text" NAME="state" MAXLENGTH=100> <BR>
<P>
Zipcode
<INPUT TYPE="text" NAME="zipcode" MAXLENGTH=100> <BR>
<P>
Country
<INPUT TYPE="text" NAME="country" MAXLENGTH=100> <BR>
<P>
Tel: No.
<INPUT TYPE="text" NAME="tel" MAXLENGTH=100> <BR>
<P>
Optional:
Fax No.
<INPUT TYPE="text" NAME="fax" MAXLENGTH=100> <BR>
<P>
E-mail
<INPUT TYPE="text" NAME="email" MAXLENGTH=100> <BR>
<P>
Any other comments:<BR>
<TEXTAREA NAME="comments" ROWS=5 COLS=16 >
</TEXTAREA><BR><BR>
<CENTER>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE="Reset">
</CENTER>
</FORM>
Please note that if this is your first time using cgi/perl scripts which is "server-side" then the script need to be uploaded to your server in ascii mode(FTP) and most of the time the script needs to be edited for:
(i)Path to Perl.
(ii)File(s) and cgi-bin folder have to be chmod 755 for Unix/Linux server before the script can work.
(iii)Others such as whether the script can be run outside the cgi-bin directory as some servers allow that although it's a security risk.
(iv)Script privilege, to prevent others using your script at your bandwidth expense.
Hope this helps and good luck.
P/s
Please visit
http://www.webmaster-forums.com/show...threadid=14569
it's about Formmail and you can also view someone's formmail layout to give you a better idea in creating the layout and design. You can also view the source code and see how it's coded by clicking View -> Source in IE .