Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms.

Slides:



Advertisements
Similar presentations
XP 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Advertisements

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.
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.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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.
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.
CO1552 Web Application Development HTML Forms. Websites can be made more interactive by providing facilities for users to provide data To get user entered.
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.
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.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Forms A Way for the User to Interact Copyright © newMANIC Inc. All rights reserved.
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 6.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
INTRODUCTORY Tutorial 8 Creating Forms. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create an HTML form Create fields for text Create.
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.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
1 HTML Forms
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
ITCS373: Internet Technology Lecture 5: More HTML.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in 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.
Site Development Foundations © 2004 ProsoftTraining All rights reserved.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 HTML Forms
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
HTML Forms a form is a container for input elements on a web page input elements contain data that is sent to the web server for processing.
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.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
1 HTML forms (cont.)
©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.
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.
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.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
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.
Tutorial 6 Working with Web Forms
Introducing Forms.
Web Development & Design Foundations with H T M L 5
Introduction to HTML: Forms
Lesson 6: Web Forms.
Unit 5 Create Forms.
Presentation transcript:

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms

Lesson 7 Objectives Discuss the importance of CGI to Web forms Identify basic Web form tags Identify Web form elements for HTML and XHTML Construct a Web form Test Web forms using a public test engine

Introduction to Web Forms Forms are used to obtain information from users – Input can include the user’s name, address or credit card number, for example – The information that a user submits in the form is sent to a server, where it is stored and/or processed Forms are essential for e-commerce, as well as for gathering information

Web Forms and CGI To be truly functional, a form requires the use of a Common Gateway Interface (CGI) program to process and organize the user input A CGI script residing on a server performs two important functions: – Receives data from a Web browser – Processes and formats the data CGI scripts can also be used to forward data to the proper destination, where it can be processed or stored

Diagramming a CGI Session

Parsing Data A Web form receives submitted user input CGI scripting (or an alternative) parses the data The browser sends user-submitted information to the Web server as a raw text string The basic element of a raw text string is a name=value pair This raw text string consists of name=value pairs, delimited by ampersands (&) After the server receives this information, a CGI script can parse and format the raw text string into a human-readable format, or enter the data into a database

Applied Example: FormMail FormMail details: – Written by Matt Wright – Extremely popular – Used to information gathered from forms to a destination you specify – You install the script onto a Web server and refer to it in your forms Security concerns Other versions of FormMail

Basic Tags for Creating Web Forms The tag creates a user-input Web form Attributes include: – method "get": not as secure, sends unencrypted text "post": encrypts, but can be easily broken – action Specifies the name and location of the CGI script used to process the form Place the, and tags between tags to create form fields

Web Form Fields User-input form fields include: – Text box – Radio button – Check box – Single-option select list – Multiple-option select list – Scrolling text area box – Password field – File upload button – Submit and Reset buttons

Forms and the name Attribute All form field elements share one attribute: name – Identifies information you receive from a user and associates it with a value you specify – Helps organize user input

Text Boxes Used to collect a single line of data from the user, such as name, or address information Syntax: You can enter default text to appear in the form: In this example, "DefaultText" would appear in the user’s window

File Upload Provides a Browse button and accompanying text box Users click the Browse button and navigate to the file they want to upload The path to the file chosen by the user will appear in the text box Choose your file here:

Submit and Reset Buttons Submit button – Sends completed user information from Web form to server Reset button – Clears all information entered into form fields, instead of submitting information to server Every form needs a means to submit data

Radio Buttons A group of two or more mutually exclusive options Never used as stand-alone items Example: Do you know carpentry? To present a preselected radio button, add the following attribute and value: checked="checked"

Check Boxes A group of non-exclusive choices Syntax:

Select Lists Drop-down lists of predetermined options Created with the tag Two types: – Single-option select list Multiple-option select list To allow the user to select multiple options, add the multiple attribute in the tag

Scrolling Text Area Box Created by the element Provides a scrolling text box into which a user can enter a few sentences, an address, a letter, etc. Used to gather more than one line of text from the user Attributes include: – cols – rows – wrap Text between tags will appear to users as default text within the box

Web Forms, CAPTCHA and SEO Use CAPTCHA to reduce spam submissions sent to your forms Consider search engine optimization (SEO) issues when developing Web forms

Lesson 7 Summary Discuss the importance of CGI to Web forms Identify basic Web form tags Identify Web form elements for HTML and XHTML Construct a Web form Test Web forms using a public test engine