shadowline
Mailto VS CGI << Textbox & Textarea >> Radio Buttons
Text options allow the visitor to actually enter text for answers. There are two types of text options. TEXT BOX and TEXTAREA. The TEXT BOX is a single line box. The TEXTAREA is a multiple line box.

TEXT BOX

These boxes are most common in FORMs. They are generally used for collecting information such as names, email addresses, URLs, etc..

Type your e-mail here
Type your e-mail here <input type="text" name="EmailAddress" size="40">

If the visitor clicks inside the box, a cursor appears and text can be entered.

inputgets the FORM ready for accepting visitor input.
type="text"creates the single line TEXT BOX.
name="EmailAddress"When you receive your feedback, this NAME will appear before the visitor input answer. This helps distinguish what question the visitor answered since the question itself is NOT transmitted.
size="40"the length of character spaces of the box. The visitor may type in more than the assigned number, but only the declared number of characters will be in view.

Some starting or default text can be entered into the box area. Some FORMs use this feature to start the URL address or insert a pre-determined amount for an order.

Type your homepage URL here
Type your homepage URL here <input type="text" name="homepage" size="40" value="http://">

Adding the VALUE property to the INPUT line adds text into the declared TYPE. In this case, into the TEXT BOX created. The inserted text can be deleted or edited by the visitor.



TEXT AREA

These are larger versions of the TEXT BOX. They give more room for visitors input. TEXTAREAs are generally used to gather feedback or comments. Anything that would take more than just one simple line answer.

Please comment on my site
Please comment on my site<br>
<textarea name="comments" rows="3" cols="40">
</textarea>

textareagets the FORM ready for accepting visitor input.
nameWhen you receive your feedback, this NAME will appear before the visitor input answer.
rowsnumber of rows down to view. The visitor may type in many more rows of information, but only the specified number of rows will be in view.
colsnumber of character spaces across to view. If the visitor types in past the specified number, the cursor will default to the next row down.

Note : The word TEXTAREA is all one word and requires an ending tag.

Some starting or default text can be entered into the box area, similar to the TEXT BOX. Instead of declaring a VALUE, it is any text you enter between the TEXTAREA tags. The text pre-inserted into the TEXTAREA can be deleted or edited by the visitor.

Please comment on my site
Please comment on my site<br>
<textarea name="comments" rows="3" cols="40">
Wonderful, couldn't be better. Don't change a thing.
</textarea>

Textarea has a limit of 32700 characters. The scrollbar appears when it is necessary.
Mailto VS CGI << Textbox & Textarea >> Radio Buttons
shadow

Advertise in the banner along the top, Click here!

Valid XHTML 1.0 Transitional Valid CSS! Text Link Ads
shadow
shadow