Hi!
ok, i need to create a form for my web site, and 1&1 says I need to use formMail.pl to do so. However, I use Frontpage 2003, and have no idea on how to send my forms to my e-mail. I can get the form designed (using simple HTML) but then what do i need to do to set up this formMail thing to send the form to my email?
I have downloaded the FormMail Compact from <
http://nms-cgi.sourceforge.net/scripts.shtml> but I still am un able to figure out where I'm supposed to put the file, or how to set it up, or whatever I need to do. A detailed Explenation would be excellent, if possible!
Thank you so much for your help!
Bick
There are a number of Parameters that FormMail.pl looks for in you HTML Form. These need values setting in your HTML code or taken from what a user types in.
Here is a simple form
__________________________
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Enquiry form</title>
</head>
<body>
<TABLE BORDER="0" WIDTH="400" CELLSPACING="0" CELLPADDING="0">
<tr>
<td>
<form name="detailsForm" method="post" action="http://www.yourwebsite.com/cgi-bin/FormMail.pl">
<input type="HIDDEN" name="subject" value="Form Submission">
<input type="HIDDEN" name="email" value="Website Forms">
<input type="HIDDEN" name="realname" value="Website Forms">
<input type="HIDDEN" name="print_blank_fields" value="yes">
<input type="HIDDEN" name="recipient" value="enquiries@yourwebsi
<input type="hidden" name="redirect" value="http://www.yourwebsite.com/forms/enquiry_thankyou.html">
<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#EDEDED">
<tr>
<td bgcolor="#999999" colspan="2">Enquiry form</td>
</tr>
<tr>
<td align="right">Title</td>
<td>
<select name="Title">
<option value="">Please select</option>
<option value="Mr">Mr.</option>
<option value="Miss">Miss</option>
<option value="Mrs">Mrs.</option>
<option value="Ms">Ms.</option>
<option value="Other">--Other--</o
</select>
</td>
</tr>
<tr>
<td align="right">Other</td>
<td><input type="text" name="Other title" value="" size="29"></td>
</tr>
<tr>
<td align="right">First name</td>
<td><input type="text" name="First_Name" value="" size="29"></td>
</tr>
<tr>
<td align="right">Surname</td>
<td><input type="text" name="Surname" value="" size="29"></td>
</tr>
<tr>
<td> </td>
<td><INPUT TYPE="submit"> <INPUT TYPE=reset></td>
</tr></table></form></body
__________________________
Note the 'Hidden' field values at the top of the form. You can get the Exact parameter names from the FormMail.pl
The important ones are 'recipient' (who gets the form) & 'redirect' (where to take browser after form has been submitted.
You may be able to edit the FormMail.pl (if your Host will let you) to ONLY allow the Form to be submitted to specified addresses.
SPammers will get your address from the 'Recipient' field, but at least this will get you started on how HTML Forms work.
Hope this helps