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.

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

Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
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.
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.
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.
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.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
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.
Getting Started with Dreamweaver
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Chapter 3. Table have many uses in a HTML design but are mostly used for the organization of your web site. Tables also give vertical and horizontal structure.
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.
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.
Creating a Web Site to Gather Data and Conduct Research.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
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.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
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.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
ITCS373: Internet Technology Lecture 5: More HTML.
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
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.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
©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.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Forms.
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.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
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.
Chapter 5 Validating Form Data with JavaScript
Unit I: Collecting Data with Forms
Tutorial 6 Creating Dynamic Pages
Creating Forms on a Web Page
Presentation transcript:

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 and process a form

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 – Simple: one form object and a button that submits information to a web server – Complex: collect contact information All forms are connected to an application that processes the information that the form collects – Information can be stored in Database or simply sent to you in an message Introduction

Planning Forms Steps: 1.Write down information you want to collect 2.Make a sketch of the form Planning will save you time 3.Create the form Organize information in a logical manner – Ex. Name is collected before address Web users will usually only fill information that is required or at the top half of a form Lesson 1: Plan and Create a Form

Creating Forms To create a form on a Web page: 1.Use the Insert Form button in the Forms category of the Insert bar  Dashed red outline appears around the form 2.Configure the form  Should “talk” to the scripts or server and processes the information submitted by the viewer  Should have some script or program that will process the information Lesson 1: Plan and Create a Form

Processing Form Information Server-side scripting – Server-side applications that reside on your web server and interact with the information collected in the form – Examples: Common Gateway Interface (CGI); Cold Fusion; Java Server Page (JSP), Active Server Pages (ASP) Client-side scripting – Form is processed on the user’s computer – Script resides on the web page – Examples: JavaScript There are two primary types of programs that can process the information your form collects: Lesson 1: Plan and Create a Form

Processing Form Information – cont. Ways to process form information: – Collect the information from the form and it to the website contact person – Form data can be stored in a database to use at a later date – Collect the form data in a database and send it in an message – Form data be processed instead of stored Lesson 1: Plan and Create a Form

Setting Form Properties Use the Property Inspector to: – specify the application that will process the form information – specify how the information will be sent to the processing application 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 Lesson 1: Plan and Create a Form

Setting Form Properties – cont. GET Method: – Data collected in the form sent to the server attached to the URL or file included in the Action Property – Data sent limited to 8KB or less POST Method: – The Form data sent to the processing script as secure binary or encrypted file – No size limit Form ID property: – Specifies a unique name for the form – String of alphanumeric characters with no spaces Target property: – Specify the window in which you want the form data to be processed Lesson 1: Plan and Create a Form

Form Controls in the Property Inspector Form Form Properties Form ID property Method propertyAction property Target property Lesson 1: Plan and Create a Form

Understanding CGI Scripts CGI is one of the most popular tools used to collect form data CGI allows: – a web browser to work directly with the programs that are running on the server and – makes it possible for a website to change in response to user input CGI programs can be written in the computer languages Perl or C, depending on the type of server that is hosting your website Lesson 1: Plan and Create a Form

Using Tables to Layout a Form Use CSS or tables to lay out forms Use table cells to make sure that your labels and form objects appear in the exact positions you want on a web page You create the table within the form outline or area If you use a table to position data in a form, you will need to create or modify CSS rules to format the labels and data fields, such as your horizontal and vertical alignment Lesson 2: Edit and Format a Form Form Outline identified by red dotted line

Adding Labels to Form Objects Include form field labels so viewers know what information you want them to enter in each field of the form Use simple and obvious labels – If not possible, explain information to be collected in short paragraph 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 Panel Lesson 2: Edit and Format a Form

Understanding Form Objects A form provides a structure in which you can place form objects Form objects allow viewers to provide information and interact with the website – Examples: checkboxes, text boxes, radio buttons – Also called form elements, form controls or fields Lesson 3: Work with Form Objects

Understanding Form Objects – cont. Text fields: – Most common type of form object – Used for collecting a string of characters – Ex. Names, address, password Text area fields: – A text field that can store several lines of text – Ex. Descriptions of problems, answer long questions Lesson 3: Work with Form Objects

Understanding Form Objects – cont. Checkboxes: – Create a list of options from which a viewer can make multiple selections – A group of Check Boxes is called a Check Box Group – Ex. Series of check boxes listing hobbies that viewer can select from Radio buttons: – Provides a list of options from which on only one selection can be made Lesson 3: Work with Form Objects

Understanding Form Objects – cont. Radio groups: – Group of radio buttons – Allowed only one selection from within group – Ex. Ask viewers to select age, salary range, answer yes/no questions Select (List/Menu): – Menus allow users to select one option from a list of choices – Lists allow users to select one or more options from a list of choices Lesson 3: Work with Form Objects

Understanding Form Objects – cont. Hidden fields: – Viewer does not know that the information is being sent to web server – Collects information that a viewer does not enter and cannot see on the screen Image fields: – Create buttons that contain custom graphics Jump menus: – Navigational menus that let viewers go quickly to different pages Lesson 3: Work with Form Objects

Understanding Form Objects – cont. Submit: – users click to transfer the form data to the web server Reset: – lets users clear data from a form and reset it to its default values, or a custom button to trigger an action that you specify on the page Lesson 3: Work with Form Objects

Website with Several Form Objects Radio button Submit button Menu list Text field American Airlines website used with permission from American Airlines – Lesson 3: Work with Form Objects

Creating User-Friendly Forms After creating a form, it should be tested to make sure: – It works correctly – It is easy to use Provide visual clues such as a different font color or other notion that label required fields – Use notes at top or bottom of form explaining that all fields marked with asterisk are required 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 Lesson 4: Test and Process a Form

Testing Dynamic Content Dynamic content – Web pages that contains content that allows the user to interact with the page by clicking or typing, and then responds to this input in some way Testing server – Used to evaluate how the form works and the data is processed (Usually your local computer) Static content – Page content that does not change or allow user interaction Lesson 4: Test and Process a Form