© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.

Slides:



Advertisements
Similar presentations
© 2011 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Advertisements

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?
Tutorial 6 Creating a Web Form
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
Chapter 3 Tables and Page Layout
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
Forms Review. 2 Using Forms tag  Contains the form elements on a web page  Container tag tag  Configures a variety of form elements including text.
Computing Concepts Advanced HTML: Tables and Forms.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
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.
CST JavaScript Validating Form Data with JavaScript.
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.
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.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
4-Sep-15 HTML Forms Mrs. Goins Web Design Class. Parts of a Web Form A Form is an area that can contain Form Control/Elements. Each piece of information.
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.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
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.
Adobe Dreamweaver CS3 Revealed CHAPTER FIVE: USING HTML TABLES TO LAY OUT A PAGE.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
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.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Macromedia Dreamweaver 8-- Illustrated Introductory 1 Macromedia Dreamweaver 8 Unit H Collecting Data with HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
1 Building FORMS In When a visitor enters information into a web form displayed in a web browser and clicks the submit button, the information is sent.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
HTML Forms.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Creating Forms on a Web Page. 2 Introduction  Forms allow Web developers to collect visitor feedback  Forms create an environment that invites people.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
© 2010 Delmar, Cengage Learning Chapter 11 Creating and Using Templates.
Learning Aim C.  In this section we will look at how text, tables, forms and frames can be used in web pages.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
Tutorial 6 Creating a Web 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.
Creating and Processing Web Forms
Chapter 5 Validating Form Data with JavaScript
Chapter 2 Developing a Web Page.
Objectives Design a form Create a form Create text fields
Getting Started with Dreamweaver
Unit I: Collecting Data with Forms
Presentation transcript:

© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms

© 2009 Delmar Cengage Learning 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test and process a form Chapter 8 Lessons

© 2009 Delmar Cengage Learning Collecting Data with Forms Adding a form to a Web page provides interactivity between your viewers and your business Use forms to collect data from viewers A form on a Web page consists of form objects All forms are connected to an application that processes the information that the form collects

© 2009 Delmar Cengage Learning Planning Forms Plan a new form Make a sketch of the form Decide what information you want to collect from user

© 2009 Delmar Cengage Learning Planning a Form Write down the information you want to collect and the order in which you want to collect it Organize the information in a logical order Make a sketch of the form

© 2009 Delmar Cengage Learning Fig. 1: Sketch of Web Form

© 2009 Delmar Cengage Learning Creating Forms To create a form on a Web page: –Use the Insert Form button in the Forms category of the Insert bar  Dashed red outline appears around the form –Configure the form  Should “talk” to the scripts or server and processes the information submitted by the viewer

© 2009 Delmar Cengage Learning Processing Form Information There are two primary types of programs that can process the information your form collects: –Server-side scripting Server-side applications –Client-side scripting Scripts on the Web page itself

© 2009 Delmar Cengage Learning Server-side Scripting Uses applications that reside on the Web Server and interacts with the information collected in the forms Examples include: –Common Gateway Interface (CGI) –Cold Fusion –Active Server Pages (ASP)

© 2009 Delmar Cengage Learning Client-side Scripting Form is processed on the user’s computer Script resides on Web page (not on server) Examples include: –JavaScript –Jscript

© 2009 Delmar Cengage Learning Setting Form Properties Action: specifies the application or script that will process the form information/data Method: specifies the HTTP method used to send the form data to the Web server –GET –POST

© 2009 Delmar Cengage Learning Fig. 2: Form Controls in the Property Inspector Form Form properties Form name property Method property Action property Target property

© 2009 Delmar Cengage Learning Fig. 3: CGI Process on Web Server

© 2009 Delmar Cengage Learning Insert a Form Before you can add form objects to your form, you must create a form area The form area will have a name and set the Action and Method of the form

© 2009 Delmar Cengage Learning Fig. 4: New Form Inserted on Feedback Page Form outline Form command

© 2009 Delmar Cengage Learning Fig. 5: Property Inspector Showing Properties of Selected Form Form ID box Method specifying data transfer method Method list arrow

© 2009 Delmar Cengage Learning Edit and Format a Form Insert a table to create a basic structure for the form Organize the form into different categories by inserting fieldsets Add and format labels

© 2009 Delmar Cengage Learning Using Tables to Layout a Form To make sure that your labels and form objects appear in the exact positions you want on a web page, you can place them in table cells You create the table within the form outline or area

© 2009 Delmar Cengage Learning Fig. 6: Website Using a Table to Lay Out a Form Federal Bureau of Investigation website –

© 2009 Delmar Cengage Learning Using Fieldsets to Group Form Objects Fieldset: HTML tag used to group related form elements Can have multiple fieldsets per page To create a fieldset, use the Fieldset button on the Insert bar

© 2009 Delmar Cengage Learning Adding Labels to Form Objects You can add labels to a form using the following methods: –Type a label in the appropriate table cell of your form –Use the Label button on the Forms group of the Insert bar Use simple and obvious labels

© 2009 Delmar Cengage Learning Fig. 7: Website Using Clearly Marked Labels Clearly labeled groups Clearly labeled options within groups Southwest Airlines website used with permission from Southwest Airlines –

© 2009 Delmar Cengage Learning Fig. 9: Table Dialog Box Top header option Table summary

© 2009 Delmar Cengage Learning Fig. 11: Typing and Formatting Labels in Table Cells

© 2009 Delmar Cengage Learning Fig. 12: Adding a Label to a Form Label button Insertion point between Label tags in Code view

© 2009 Delmar Cengage Learning A form provides a structure in which you can place form objects Form objects allow viewers to provide information and interact with the website –For example: checkboxes, text boxes –Also called form elements, form controls or fields Understanding Form Objects

© 2009 Delmar Cengage Learning Understanding Form Objects Text fields Text area fields Checkboxes Radio buttons Radio groups Menu/list Hidden fields Image fields Jump menus

© 2009 Delmar Cengage Learning Text fields are used for collecting a string of characters A text area field is a text field that can store several lines of text Checkboxes are used to create a list of options from which a viewer can make multiple selections Understanding Form Objects

© 2009 Delmar Cengage Learning Radio buttons provide a list of options from which only one selection can be made –A group of radio buttons is called a radio group Menus are used to select a single option from a list of choices Lists are used to select one or more options from a list of choices Understanding Form Objects

© 2009 Delmar Cengage Learning Hidden fields provide information to the Web server and form processing script without the viewer knowing that the information is being sent The Image Field button is used to create buttons that contain custom graphics Jump menus are navigational menus Understanding Form Objects

© 2009 Delmar Cengage Learning Fig. 14: Website with Several Form Objects Radio button Submit button Menu list Text field American Airlines website used with permission from American Airlines –

© 2009 Delmar Cengage Learning Using Dreamweaver Exchange To obtain form controls designed for creating specific types of forms, such as online tests and surveys, you can visit Adobe Dreamweaver Exchange The Adobe Exchange site is a central storage location for program extensions, also known as add-ons

© 2009 Delmar Cengage Learning Fig. 17: Property Inspector Showing Properties of Selected Text Field Text Field button ID New text field

© 2009 Delmar Cengage Learning Fig. 18: Form with Single-Line Text Fields Added

© 2009 Delmar Cengage Learning Fig. 20: Input Tag Accessibility Attributes Dialog Box for Fishing Label Fishing ID Fishing label Wrap with label tag option button After form item option button

© 2009 Delmar Cengage Learning Fig. 21: Property Inspector with Check Box Properties Displayed Fishing checkbox selected Checkbox name = fishingChecked value = fishInitial state = Unchecked

© 2009 Delmar Cengage Learning Fig. 23: Radio Group Dialog Box First instance Second instance Line breaks ( tags) option button

© 2009 Delmar Cengage Learning Fig. 26: List Values Dialog Box Add button New item labels Values of new items

© 2009 Delmar Cengage Learning Fig. 28: Property Inspector Showing Properties of Selected Hidden Field Hidden Field text box Hidden Field Hidden Field button

© 2009 Delmar Cengage Learning Fig. 29: New Submit and Reset Buttons Added to Form Submit button Reset button Button name text box Value text box Button button

© 2009 Delmar Cengage Learning Test a Form After creating a form, it should be tested to make sure: –It works correctly –It is easy to use You should always have several people test your form before you publish it

© 2009 Delmar Cengage Learning Creating User-Friendly Forms Label required fields (use colored *) Forms should have good contrast between the color of the text and the color of the table background There should be a logical flow for the data fields The Submit and Reset buttons should be at the end of the form

© 2009 Delmar Cengage Learning Testing Dynamic Content Dynamic content Testing server Static content

© 2009 Delmar Cengage Learning Fig. 31: Viewing the Feedback Link Link to feedback page

© 2009 Delmar Cengage Learning Fig. 32: Testing the Feedback Page