[an error occurred while processing this directive]
![]() | The Two Required Hidden Fields |
What are Hidden Fields?
Hidden fields are variables which are passed to the Forms Processor, like any other piece of data entered into a form by a client except that hidden fields and their values do not show up in the browser.
The Forms Processor must have two crucial bits of information to handle forms correctly. It must know what WebCom account a particular form belongs to, and the name of an optional configuration file which goes along with the form. To satisfy the first requirement, you need to include the following hidden field in your forms:
<INPUT TYPE=hidden NAME=userid VALUE="your_userid">In the above tag, a variable named
userid is passed to the Form Processor with the value of the customer userid.<INPUT TYPE=hidden NAME=form_name VALUE="configuration_file_name">passes a variable named
form_name to the Forms Processor with the value set at whatever the configuration file is named. NOTE: Even if you do not have a configuration file, and don't plan to have one, you still need to have this field in your form. If you do not have a configuration file for the form, you can set the form_name variable to anything you like.
Example use of Hidden Fields in Forms
The following is the HTML for a simple WebCom form:
<HTML> <HEAD> <TITLE> Sample Form </TITLE> </HEAD> <BODY> <P>Sample Form</P> <FORM METHOD=POST ACTION="http://webcom.com/~webcom/cgi-bin/form"> <INPUT TYPE=hidden NAME=userid VALUE="your_userid"> <INPUT TYPE=hidden NAME=form_name VALUE="any_name_you_choose"> Please Enter Your Name:<BR> <INPUT TYPE=text NAME=your_name><BR> <INPUT TYPE=submit VALUE="Submit"> </FORM> </BODY> </HTML>
your_name="Rick Atlansky"
The Forms Processor then examines this data, and looks for a file named "any_name_you_choose.cfg" in the "your_userid" account. When it doesn't find such a file, it sends email to your_userid@webcom.com with
userid="your_userid"
form_name="any_name_you_choose"your_name="Rick Atlansky" in the body of the message.
PLEASE NOTE: The only permissible uses of the Forms Processor are: