The code highlighted in red must pertain to your
own netfirms account details. Although the whole coded string must be included.
A further page must be created and uploaded for the "Thankyou" or "Response" to
the form submit.
<form name="cvform" method="POST" action="/cgi/formmail">
<input type="hidden" name="cvform" value="Source
of form">
<table name="cvtable" align="center">
<tr>
<td>
<div align="right">Title</div>
</td>
<td>
<select name="frmtitle">
<option value="mr" selected>Mr</option>
<option value="mrs">Mrs</option>
<option value="miss">Miss</option>
</select>
</td>
</tr>
<tr>
<td>
<div align="right">First Name</div>
</td>
<td>
<input type="text" name="frmfirstname" size="20" maxlength="25">
</td>
</tr>
<tr>
<td>
<div align="right">Last Name</div>
</td>
<td>
<input type="text" name="frmlastname" size="20" maxlength="30">
</td>
</tr>
<tr>
<td>
<div align="right">Company Name</div>
</td>
<td>
<input type="text" name="frmconame" size="20" maxlength="50">
</td>
</tr>
<tr>
<td height="11">
<div align="right">Company Type</div>
</td>
<td height="11">
<input type="radio" name="frmcotype" value="agency">
Agency
<input type="radio" name="frmcotype" value="Employer">
Employer
<input type="radio" name="frmcotype" value="Other">
Other </td>
</tr>
<tr>
<td>
<div align="right">Web Address</div>
</td>
<td>
<input type="text" name="frmcowebadd" size="25" maxlength="50" value="www.">
</td>
</tr>
<tr>
<td>
<div align="right">Contact Name</div>
</td>
<td>
<input type="text" name="frmcontname" size="25" maxlength="50">
</td>
</tr>
<tr>
<td>
<div align="right">Contact Phone</div>
</td>
<td>
<input type="text" name="frmcontphone" size="25" maxlength="50">
</td>
</tr>
<tr>
<td height="11">
<div align="right">Contact Email</div>
</td>
<td height="11">
<input type="text" name="frmcontemail" size="20">
</td>
</tr>
<tr>
<td height="2">
<div align="right">Comments</div>
</td>
<td height="2">
<textarea name="frmcomments" rows="3" cols="25"></textarea>
</td>
</tr>
<tr>
<td>
<input type="hidden" name="SendMailTo" value="kevinaves@btconnect.com">
<input type="hidden" name="redirect" value="http://kevinaves.netfirms.com/thankyou.htm">
</td>
<td>
<input type="reset" name="Reset" value="Reset">
<input type="submit" name="Submit2" value="Submit">
</td>
</tr>
<tr>
<td colspan="2">
<div align="center"> </div>
</td>
</tr>
</table>
<input type="hidden" name="recipient" value="kevinaves@btconnect.com">
</form>
About the form code Meanings:
Forms can be created in a varety of ways. All will
employ the use of the remote server in order for them to operate.
What we are going to be using is 'form mail', which bases its operation from
code commands in the html form code that trigger action responses from the
remote server script which enables the form results to be sent to a specified email
address and a response page returned to the visitor once the form has been
sent.
Now different parts of the form page code (html) are required to be inherent
in the page code in order for this to happen.
The coded line : <form name="cvform" method="POST" action="/cgi/formmail"> refers
to a command sent to the remote server cgi bin
(My example is for netfirms).
The next line : <input type="hidden" name="cvform" value="Source
of form"> refers to "What is going to be collected?"
In this case the source of the form, or the 'results'.
This line: <input type="hidden" name="SendMailTo" value="kevinaves@btconnect.com">
(Not necessary for netfirms but common with many hosting servers) refers to
the email address to which the forms should be sent to.
Netfirms own server requires: <input type="hidden" name="recipient" value="kevinaves@btconnect.com">
Same as above but netfirms specify 'recipient' instead of 'SendMailTo' for
their server action to occur.
Finally this line:
<
input type="hidden" name="redirect" value="http://kevinaves.netfirms.com/thankyou.htm">
(Applicable to most all servers) refers to the page that will be returned to
the visitor once he has clicked the submit button on our form.
Netfirms help files for forms and cgi Here
|