Chapter 14 Creating User Forms

To create a user input form

Creating a Basic Form

<form method="post">
</form>

To send form results to an e-mail address

Creating a Basic Form

<form method="post" action=mailto:emailaddress enctype="text/plain">

where emailaddress is the address to which to send the data.

To send form results to a CGI script

Creating a Basic Form

<form method="post" action="url">

where url is the path to the script.

To create a text box field in a form

Creating a Basic Form

<input type="text" name="fieldname" size="n" maxlength="n" />

where fieldname is a unique name you assign, and n is a number of characters.

To create a multiline text area

Creating a Basic Form

<textarea name="fieldname" rows="n1" columns="n2">Default text</textarea>

where fieldname ...

Get HTML and XHTML Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.