L esson N o. 6
- Creating A Form -
There are a list of forms that you can create
Example # 1
<input NAME="ex1"
size="30">
(This is what it looks like. The name of the above form is
called "ex1" and the size is 30)
Example # 2
<INPUT TYPE="radio" NAME=Do_You_Know
VALUE="Yes">Yes
Yes (This is a radio button)
(This is what it looks like. The Name of this form is
"Do_You_Know)
Example # 3
<TEXTAREA NAME="comment"
ROWS=6 COLS=60></TEXTAREA>
(As you can see, the <TEXTAREA> Creates the Box
FORM with the Name "Comment")
Example # 4
<input type="checkbox" name="html"
value="ON">
- This is a checkbox with the name called "html"
Here is how you create
a form that will send the result to your email address
Before you have any forms from example # 1,
example # 2, etc - this command should be at the top.
<FORM METHOD="POST"
ACTION="mailto:htmlg@hotmail.com>
This command
tells the form to send all of the information to the address at:
htmlg@hotmail.com
After you
have the <FORM METHOD="POST"
ACTION="mailto:htmlg@hotmail.com> , you can begin to add your choice of
forms that you want (ie - from example # 1 , or example 2 , or BOTH, etc)
Example A1
<FORM METHOD="POST"
ACTION="mailto:htmlg@hotmail.com">
<B>Please enter your name: </B><INPUT
NAME="username" size="30">
<INPUT TYPE=submit VALUE="Send it!">
<INPUT TYPE=reset VALUE="Start over">
Please enter your name:
Remeber to have
this command at the top
<FORM
METHOD="POST" ACTION="mailto:htmlg@hotmail.com">
This
command at the bottom (The end of your form):
<INPUT TYPE=submit
VALUE="Send it!">
<INPUT TYPE=reset VALUE="Start over">
(You can replace the word "Send
it!" and "Star Over" to anything you want -
BUT do NOT replace the word
"submit" and "reset")
Use adjustment,
indictation to make your web page stand out.
You can have as much form
types as you want - But always remeber to have the top and bottom command.
You can adjust the width,
height or your form
To link to an email
address, the command is:
<a
href="mailto:htmlg@hotmail.com>
(c)
1998 Sinh Truong Nguyen. All Rights Reserved.