Chapter 14: Working with Forms PDF Print E-mail
Sections - Part IV: Integrating Scripts with (X)HTML

Most of the HTML you write helps you display content and information for your users. Sometimes, however, you want a Web page to gather information from users instead of giving static information to them. HTML form markup tags give you a healthy collection of elements and attributes for creating forms to collect information from visitors to your site.

This chapter covers the many different users for forms. It also shows you how to use form markup tags to create just the right form for soliciting information from your users, reviews youroptions for working with the data you receive, and gives you some tips for creating easy-to-use forms that really help your users provide the information you're looking for.

Page 248, Figure 14-1: Searches
The IRS home page uses two short search forms

Page 249, Figure 14-2: 2008 refund status is now available; please visit https://sa1.www4.irs.gov/irfof/lang/en/irfofgetstatus.jsp

Page 250, Figure 14-3: You can see the notifications message from the Library of Congress at http://memory.loc.gov/learn/community/tlpnewsletter/nlsubscribe.html

Page 250, Figure 14-4: The RateGenius application page is available online at https://www.rategenius.com/Apply/Apply.php

Page 251: WebMonkey has been reorganized; find the Good Form! and related content online at "Add HTML Forms to Your Site" http://www.webmonkey.com/tutorial/Add_HTML_Forms_to_Your_Site

Page 253 through 262: PLEASE NOTE: Wherever you see action="post" in a code listing or sample, you should be aware that this must say method="post" to be syntactically correct (and valid). We've corrected all the files associated with this chapter, but we can't fix text that's already printed. Please don't repeat our dumb mistake, made worse by its repetition.

Page 253, Figure 14-5: Text entry fields in a form (display view) (code view)

Page 254, Figure 14-6: Text field size (display view) (code view)

Page 255, Figure 14-7: Masked text (display view) (code view)

Page 256, Figure 14-8: Check boxes and radio buttons (display view) (code view)

Page 258, Figure 14-9: A file-upload field (display view) (code view)

Page 259, Figure 14-10: A drop-down list (display view) (code view)

Page 260, Figure 14-11: A multiple options list (display view) (code view)

Page 261, Figure 14-12: A text box (display view) (code view)

Page 263, Figure 14-13: Submit and reset buttons (display view) (code view)

Page 264: JavaScript resources

Page 264: CGI resources

Page 265: The WebMonkey article "CGI Scripts for Fun and Profit" is not available as we update this book (WebMonkey is being reorganized); check out "CGI Scripts" at http://www.buildwebsite4u.com/advanced/cgi-scripts.shtml instead.

Page 266: Free script repositories

Page 267: The source code at the top of the page should read method="post"

Page 268, Figure 14-14: The RateGenius loan application page starts at https://www.rategenius.com/Apply/Apply.php

 

.ZIP file of all code samples from this chapter (12kb)

 



Share this page!
Reddit! Del.icio.us! JoomlaVote! Google! Live! Facebook! StumbleUpon! Yahoo! Free social bookmarking plugins and extensions for Joomla! websites!
Last Updated on Monday, 30 June 2008 11:42
 
Chapter Resources
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
Chapter 15
Chapter 16
Chapter 17
Chapter 18
Chapter 19
Chapter 20
Chapter 21
Chapter 22
Chapter 23
Feedback - send us a message
Featured Links:
Banner
Visit co-author
Ed Tittel's web site!
Visit co-author
Jeff Noble's web site!
Conquest Media
Web page layout and
hosting provided by
SheTech and Company. the power of the web. http://www.shetech.com