§To
insert a form we use the <FORM></FORM> tags. The rest of the form
elements must be inserted in between the form tags.
<HTML>
<HEAD>
<TITLE>
Sample Form</TITLE>
</HEAD>
<BODY
BGCOLOR=“FFFFFF”>
<P>
First Name: <INPUT TYPE=“TEXT” NAME=“fname” MAXLENGTH=“50”>
</P>
<P>
<INPUT TYPE=“SUBMIT” NAME=“fsubmit” VALUE=“Send Info”> </P>
</FORM>
</BODY>
</HTML>
<FORM> element attributes
§ACTION:
is the URL of
the CGI
(Common Gateway Interface) program that is going to accept the
data from the
form, process it, and send a response back to the browser.
§METHOD:
GET
(default) or POST
specifies which HTTP
method will be used to send the form’s
contents to the web server. The CGI
application should be written to accept the data from either method.
§NAME:
is a form name used by VBScript orJavaScripts.
§TARGET:
is the target frame where the response page will show up.
Form Elements
Comments
Post a Comment