Chapter 9 Working with Forms. Principles of Web Design 2nd Ed. Chapter 9 2 Principles of Web Design Chapter 9 Objectives Understand how forms work Understand.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Chapter 12 Working with Forms Principles of Web Design, 4 th Edition.
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
Tutorial 6 Working with Web Forms
USER INTERACTIONS: FORMS
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Creating Web Page Forms
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
Chapter 10 Publishing and Maintaining Your Web Site.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
CST JavaScript Validating Form Data with JavaScript.
Principles of Web Design 6 th Edition Chapter 11 – Web Forms.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Working with Forms. How Forms Work Forms let you build interactive Web pages that collect information from a user and process it on the Web server The.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Chapter 9 Publishing and Maintaining Your Site. 2 Principles of Web Design Chapter 9 Objectives Understand the features of Internet Service Providers.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
HTML Form Teppo Räisänen LIIKE/OAMK Basic Structure of a HTML Form The element defining a form is ’form’ Form’s most important attributes are The.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Week 12 Working with Forms Objectives Understand how forms work Understand form syntax Create input objects Build forms within tables Build and.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 HTML forms (cont.)
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Project 6 Creating Forms on a Web Page. Objectives Define terms related to forms Describe the different form controls and their uses Use the tag Create.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Creating Forms on a Web Page. 2 Objectives  Discuss the process of creating a form  Distinguish between data input controls and text input controls.
Week 10: HTML Forms HNDIT11062 – Web Development.
HTML FORMS Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
Basic Webpage Design HTML Forms. Objectives Learn how to use HTML to create a form. Explain the concept of forms Know the difference of GET and POST Discuss.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
1 HTML forms (cont.)
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Creating and Processing Web Forms
Chapter 5 Validating Form Data with JavaScript
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Web Programming– UFCFB Lecture 10
Designing Forms Lesson 10.
FORM OBJECT When creating an interactive web site for the Internet it is necessary to capture user input and process this input. Based on the result of.
Principles of Web Design 5th Edition
Creating Forms on a Web Page
Lesson 6: Web Forms.
Presentation transcript:

Chapter 9 Working with Forms

Principles of Web Design 2nd Ed. Chapter 9 2 Principles of Web Design Chapter 9 Objectives Understand how forms work Understand form syntax Build forms within tables Build and test a sample form

Principles of Web Design 2nd Ed. Chapter 9 3 Principles of Web Design Chapter 9 How Forms Work Forms let you build interactive Web pages that collect information from a user and process it on the Web server The HTML form is the interface for the user to enter data The data is processed by applications that reside on the Web server

Principles of Web Design 2nd Ed. Chapter 9 4 Principles of Web Design Chapter 9 Figure 9-1

Principles of Web Design 2nd Ed. Chapter 9 5 Principles of Web Design Chapter 9 Using CGI Scripts The Common Gateway Interface (CGI) is the communications “bridge” between the Internet and the server Using programs called scripts, CGI can collect data sent by a user via the Hypertext Transfer Protocol (HTTP) and transfer it to a variety of data processing programs including spreadsheets, databases, or other software running on the server

Principles of Web Design 2nd Ed. Chapter 9 6 Principles of Web Design Chapter 9 Figure 9-2

Principles of Web Design 2nd Ed. Chapter 9 7 Principles of Web Design Chapter 9 Using CGI Scripts The data processing software can then work with the data and send a response back to CGI, and then onto the user The user enters data via an HTML form

Principles of Web Design 2nd Ed. Chapter 9 8 Principles of Web Design Chapter 9 Forms Syntax Five basic form elements are commonly supported by the major browsers:

Principles of Web Design 2nd Ed. Chapter 9 9 Principles of Web Design Chapter 9 Forms Syntax HTML 4.01 introduced five new form elements:

Principles of Web Design 2nd Ed. Chapter 9 10 Principles of Web Design Chapter 9 Using the element The element is the container for creating a form. A variety of attributes describe how the form data will be handled. Table 9-1

Principles of Web Design 2nd Ed. Chapter 9 11 Principles of Web Design Chapter 9 Using the element The following code shows a typical element:

Principles of Web Design 2nd Ed. Chapter 9 12 Principles of Web Design Chapter 9 Creating Input Objects The element defines many of the form input object types The type attribute specifies the type of input object

Principles of Web Design 2nd Ed. Chapter 9 13 Principles of Web Design Chapter 9 Input Element Types Table 9-2

Principles of Web Design 2nd Ed. Chapter 9 14 Principles of Web Design Chapter 9 Creating Text Boxes The text box is the most commonly used form element.

Principles of Web Design 2nd Ed. Chapter 9 15 Principles of Web Design Chapter 9 Creating Text Boxes Figure 9-3

Principles of Web Design 2nd Ed. Chapter 9 16 Principles of Web Design Chapter 9 Creating Checkboxes Checkboxes are an on/off toggle that the user can select. Smallmouth Bass

Principles of Web Design 2nd Ed. Chapter 9 17 Principles of Web Design Chapter 9 Creating Checkboxes Figure 9-4

Principles of Web Design 2nd Ed. Chapter 9 18 Principles of Web Design Chapter 9 Creating Radio Buttons Radio buttons are like checkboxes, but only one selection is allowed. Yes

Principles of Web Design 2nd Ed. Chapter 9 19 Principles of Web Design Chapter 9 Creating Radio Buttons Figure 9-5

Principles of Web Design 2nd Ed. Chapter 9 20 Principles of Web Design Chapter 9 Creating Submit & Reset Buttons The submit and reset buttons let the user choose whether to send the form data or start over.

Principles of Web Design 2nd Ed. Chapter 9 21 Principles of Web Design Chapter 9 Creating Submit & Reset Buttons Figure 9-6

Principles of Web Design 2nd Ed. Chapter 9 22 Principles of Web Design Chapter 9 Creating a Custom Event Button Custom event buttons activate a function in some associated program or script. Click the calculate button to total your order:

Principles of Web Design 2nd Ed. Chapter 9 23 Principles of Web Design Chapter 9 Creating a Custom Event Button Figure 9-7

Principles of Web Design 2nd Ed. Chapter 9 24 Principles of Web Design Chapter 9 Creating a Custom Submit Image You can choose an image file and use it instead of the default submit button.

Principles of Web Design 2nd Ed. Chapter 9 25 Principles of Web Design Chapter 9 Creating a Custom Submit Image Figure 9-8

Principles of Web Design 2nd Ed. Chapter 9 26 Principles of Web Design Chapter 9 Letting the User Submit a File Users can select a file on their own computer and send it to the server. Use the browse button to select your file:

Principles of Web Design 2nd Ed. Chapter 9 27 Principles of Web Design Chapter 9 Letting the User Submit a File Figure 9-9

Principles of Web Design 2nd Ed. Chapter 9 28 Principles of Web Design Chapter 9 Creating a Password Entry Field The password input box works like the text input, but the entered text is hidden by asterisks. password:

Principles of Web Design 2nd Ed. Chapter 9 29 Principles of Web Design Chapter 9 Creating a Password Entry Field Figure 9-10

Principles of Web Design 2nd Ed. Chapter 9 30 Principles of Web Design Chapter 9 Using the Element The element lets you create a list box or scrollable list of selectable options. Canoe Jon Boat Kayak Bass Boat Family Boat

Principles of Web Design 2nd Ed. Chapter 9 31 Principles of Web Design Chapter 9 Using the Element Figure 9-11

Principles of Web Design 2nd Ed. Chapter 9 32 Principles of Web Design Chapter 9 Using the Element You can choose to let the user pick multiple values from the list by adding the multiple attribute. Potato Chips Popcorn Peanuts Pretzels Nachos Pizza Fries

Principles of Web Design 2nd Ed. Chapter 9 33 Principles of Web Design Chapter 9 Using the Element Figure 9-12

Principles of Web Design 2nd Ed. Chapter 9 34 Principles of Web Design Chapter 9 Using the Element You group and label sets of list options with the element and label attribute. Potato Chips Popcorn Peanuts Pretzels

Principles of Web Design 2nd Ed. Chapter 9 35 Principles of Web Design Chapter 9 Using the Element Figure 9-13

Principles of Web Design 2nd Ed. Chapter 9 36 Principles of Web Design Chapter 9 Using the Element The element lets you create a larger text area for user input. Briefly tell us your favorite fish story: Enter your story here...

Principles of Web Design 2nd Ed. Chapter 9 37 Principles of Web Design Chapter 9 Using the Element Figure 9-14

Principles of Web Design 2nd Ed. Chapter 9 38 Principles of Web Design Chapter 9 Creating Input Groupings You can use the and elements to create groupings of different types of input elements.

Principles of Web Design 2nd Ed. Chapter 9 39 Principles of Web Design Chapter 9 Creating Input Groupings Select the species you prefer to fish: Smallmouth Bass Largemouth Bass Pike

Principles of Web Design 2nd Ed. Chapter 9 40 Principles of Web Design Chapter 9 Using the Element Figure 9-15

Principles of Web Design 2nd Ed. Chapter 9 41 Principles of Web Design Chapter 9 Building Forms within Tables Placing forms within a table can enhance the layout and legibility of the form.

Principles of Web Design 2nd Ed. Chapter 9 42 Principles of Web Design Chapter 9 Building Forms within Tables Figure 9-16 Figure 9-17

Principles of Web Design 2nd Ed. Chapter 9 43 Principles of Web Design Chapter 9 Summary You will need to work with some type of server-based software program to process the data from your form You have a variety of form elements to choose from when building a form. Use the correct type of form element for the type of data you are gathering. For example, use checkboxes for multiple-choice questions. For a long list of choices, use a select list.

Principles of Web Design 2nd Ed. Chapter 9 44 Principles of Web Design Chapter 9 Summary The and elements let you create more visually appealing forms that have logical groupings of input elements with a title You can control the ragged look of forms by placing them within tables to control the alignment of input elements