Forms. Forms are boring. 75% of all work you do with forms is exactly like all the rest of the work you do with forms. BO-RING.
But, they’re the gateway to making real money on the web, so they’re kind of important.
Hopefully, after today you’ll know all about forms and will love them.
Let’s take a look at our example form:
<form action="http://www.drunkenfist.com/304/wp-comments-post.php" method="post" id="commentform">
<fieldset>
<legend>Contact Info:</legend>
<p>
<label for="author">Name (required)</label>
<input type="text" name="author" id="author" value="" tabindex="1" />
</p>
<p>
<label for="email">Mail (will not be published)(required)</label>
<input type="email" name="email" id="email" value="" tabindex="2" />
</p>
<p>
<label for="url">Website</label>
<input type="url" name="url" id="url" value="" tabindex="3" />
</p>
</fieldset>
<p>
<label for="comment">Comments</label>
<textarea name="comment" tabindex="4"></textarea>
</p>
<div class="button">
<input name="submit" type="submit" id="submit" tabindex="5" value="Submit" />
</div>
</form>
This sample is based on the default WordPress theme. It’s maybe not as complicated as a sign-up form, but it does show the basics. On to it then.
Continue reading “How To Make a Web Site the Modern Way. Part 10: Forms” →