Q: How do I create a form for a visitor to send me information?
A: If you're a Prodigy Internet member, PI has provided a free forms CGI script that will work with all browsers. The use of PI's CGI script requires certain fields to be present in your form. The PI CGI script requires the use of a different ACTION than the simple form example that follows:
The basic elements needed to create a form are: FORM, SELECT and OPTION, NAME, VALUE, INPUT TYPE, and TEXTAREA. Every form must have a beginning and ending FORM tag to define the form. The beginning FORM tag identifies the ACTION and METHOD. It's not really necessary to understand all the options of ACTION and METHOD, just know that they have to be there. All form elements must fall between the beginning and ending FORM tag. Following is the code and FORM ACTION format needed to create a simple form (please note that the mailto: ACTION may not work with Internet Explorer). Simply replace "xxxxxxx@wherever.com" with your Internet mail ID:
This is a simple form, with a single text box and a 'send' button and a 'reset' button:
| <FORM ACTION="mailto:xxxxxxx@wherever.com" METHOD=POST>
Enter your E-mail ID here:
<INPUT TYPE="text" name="emailid" SIZE=38 MAXLENGTH=100>
<INPUT TYPE="submit" VALUE="Send this Form!">
<INPUT TYPE="reset" VALUE="Oops! I need to start over">
</FORM> |
And this is what the above code looks like:
back to top