VFORMfm.CGI |
Virtual Form CGI Written by Victor T. DeCristoforo Copyright Area 51 Consulting Inc. |
This sample form is about as generic as it gets. The only special option that
the CGI is doing here is looking for Required fields.
The required fields in this example are Name, Company, and Email.
This form will also prompt the user with its default response page. Another
CGI option that is being used that works in conjunction
with the default user response page is the "FormTitle" option. This
option will also be used in this example.
Below this example is the actual HTML source code.
<form action="/cgi-bin/vformfm.cgi" method="POST">
<div align="left">
<table border="0" width="50%">
<tr> <td width="50%">*Name: </td><td width="50%">
<Input type="text" name="NAME"></td></tr>
<tr> <td width="50%">Title: </td><td width="50%">
<Input type="text" name="TITLE"></td></tr>
<tr> <td width="50%">*Company: </td><td width="50%">
<Input type="text" name="COMPANY"></td></tr>
<tr> <td width="50%">Phone: </td><td width="50%">
<Input type="text" name="PHONE"></td></tr>
<tr> <td width="50%">*Email: </td><td width="50%">
<Input type="text" name="EMAIL"></td></tr>
</table>
</div>
<h6>NOTE: Fields with a * are required</h6>
<p>
<Input type="submit" name="Submit" value="Enter">
<Input type="reset" name="RESET" value="Clear">
</p>
<!-- The following input fields are required by the CGI. -->
<Input type="hidden" name="VF_MailTo" value="guru@mail.ar51.net">
<Input type="hidden" name="VF_ReturnURL" value="http://www.drdebug.com">
<!-- The following input fields have special meaning to the CGI.
-->
<Input type="hidden" name="VF_Subject" value="VformFM
Example 1 data">
<Input type="hidden" name="VF_REQUIRED" value="NAME,
EMAIL, COMPANY">
<Input type="hidden" name="VF_FormTitle" value="VformFM
Title for Example 1">
<Input type="hidden" name="VF_Verify" value="1">
</form>
|
VformFM Title for Example 1 |
||
| NAME: | Guru | |
| TITLE: | Test 1 | |
| COMPANY: | Area 51 Consulting | |
| PHONE: | 330-374-0351 | |
| EMAIL: | guru@ar51.net | |
<hr>
Jul 20 12:47:26 [vformfm.cgi]
This form data was sent AUTOMATICALLY by the HTML form:
http://www.drdebug.com/vform/vform20.html#vform_ex1
Using the CGI:/cgi-bin/vformfm.cgi
#START OF DATA
NAME=Guru
TITLE=Test 1
COMPANY=Area 51 Consulting
PHONE=330-374-0351
EMAIL=guru@ar51.net
CallingPage=http://www.drdebug.com/vform/vform20.html#vform_ex1
#END OF DATA
<hr>