Creating Web Page Forms COE 201- Computer Proficiency.

Slides:



Advertisements
Similar presentations
Tutorial 6 Creating a Web Form
Advertisements

Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
XP 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
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.
XP Tutorial 6: Creating Web Page Forms. XP An Example of a Form.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 6: Creating Web Page Forms.
XP Creating Web Pages with HTML, 3e Prepared by: C. Hueckstaedt, Tutorial 6 1 New Perspectives on Creating Web Pages with HTML Tutorial 6: Creating Web.
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.
ECA 228 Internet/Intranet Design I Forms. ECA 228 Internet/Intranet Design I Forms forms are a way for a user to communicate with you – text fields –
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.
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.
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.
Forms and Form Controls Chapter What is a Form?
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.
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.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 6: Creating Web Page Forms.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
 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
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
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.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
1 HTML Forms
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
1 HTML Forms
XP 1 Tutorial 6 Creating Web Page Forms. XP 2 Tutorial Objectives  Describe how Web forms can interact with a server-based program  Review the various.
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.
Form Components and Elements
1 HTML Forms
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
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.
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.
HTML Forms.
Week 10: HTML Forms HNDIT11062 – Web Development.
HTML FORMS Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
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.
1 HTML Forms
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.
Tutorial 6 Creating a Web Form
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.
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.
Tutorial 6 Working with Web Forms
ITE 115 Creating Web Page Forms
New Perspectives on Creating Web Pages with HTML
CNIT 131 HTML5 - Forms.
Chapter 6: Creating Web Page Forms. An Example of a Form.
HTML Forms
Presentation transcript:

Creating Web Page Forms COE 201- Computer Proficiency

XP An Example of a Form

XP Form Components and Elements First Name Address #1 Address #2 City Last Name Country StateZip Item PurchasedPurchase Date Home Business Government Educational Institution Netware Banyan Vines Windows IBM Lan Server Comments?: Send Registration Cancel Serial Number Used For (check one) Network Operating System (check all that apply) Religious or Charitable Institution PC/NFS Input box drop-down list box radio buttons check boxes text area form button group box

XP Form Control Elements Control elements : ▫text boxes for text and numerical entries ▫selection lists for long lists of options, usually appearing in a drop-down list box ▫radio buttons, also called option buttons, to select a single option from a predefined list ▫check boxes to specify an item as either present or absent ▫groups boxes to organize form elements ▫text areas for extended entries that can include several lines of text ▫buttons that can be clicked to start processing the form Each control element in which the user can enter information is called a field.

XP The Tag A single page can include several different forms, but you cannot nest one form inside another. The general syntax of the tag is: form elements and layout tags A single Web page can contain multiple forms, the tag includes the name attribute. The name attribute identifies each form on the page. The name attribute is also needed for programs that retrieve values from the form.

XP Adding the Tag The tag includes attributes that control how the form is processed This figure shows the form name “ reg.”

XP Completed Registration Form contact information product information usage information comments buttons

XP Input Types

XP Working with Text Boxes Text boxes are created using the tag. The general syntax is: ▫type specifies the type of input field ▫name and id attributes identifies the input field for the CGI script To create a text box, you would enter the tag:

XP Creating a Text Box To create a text box, use the following HTML code: ▫name and id attributes identify the field ▫value - a default value to the text box ▫size - the width of the text box in number of characters ▫maxlength - the maximum number of characters allowed in the field

XP Text Boxes on the Form text box Text boxes are blank and do not contain any accompanying text, a text description needs to be inserted, such as “Last Name”, adjacent to each box so that the user knows what to enter. text description

XP Setting the Width of Text Boxes

XP Creating a Password Field A password field is a text box in which the characters typed by the user are displayed as bullets or asterisks i.e. ****. The syntax for creating a Password field is: Using a password field should not be confused with having a secure connection. The password itself is not encrypted. The password field only acts as a mask for a field entry as it is entered.

XP Form Labels & selection lists HTML allows you to formally link a label with an associated text element. The syntax for creating a form label is: label text ▫id is the value of the id attribute for a field on the form ▫label text is the text of the label ▫you must bind the label to the id attribute of the field and not the name attribute

XP Creating a Label for the fname Field value of the id attribute for the first name field This figure shows a label for the fname field.

XP Using a Selection List Your selection list might look slightly different depending on the browser and browser version.

XP Creating a Selection List A selection list is a list box from which a user selects a particular value or set of values. Selection lists are good to use when there is a fixed set of possible responses. Selection lists help prevent spelling mistakes and erroneous entries. A selection list is created using the tag. The tag is used to specify individual selection items.

XP Creating a Selection List items in the selection list selection list field name

XP Selection Lists with Different Size Values size = "1" size = "4" size = "7"size = "9"

XP Radio Buttons Radio buttons display a list of choices from which a user makes a selection. ▫Only one radio button can be selected at a time. The syntax to create a radio button is: ▫name - the field containing the radio button (required) ▫id - the specific option. Only required if you intend to use a field label with the radio button ▫value - if that radio button is selected by the user

XP Creating Radio Buttons

XP Working with Check Boxes A check box is either selected or not Check boxes are created using the following syntax: ▫name and id - the check box ▫the value - the value that is sent to the CGI script when the check box is selected Check boxes are not selected by default. ▫to do this, add the checked attribute to the tag ▫

XP Group Boxes for Radio Buttons and Check Boxes

XP Creating a Text Area resulting text area dimensions of text area default text area text

XP Creating a Form Button

XP Creating a Push Button One type of button, called a push button, is created using the tag as follows: ▫text is the text that appears on the button By themselves, push buttons perform no actions in the Web page. To create an action, write a script or program that runs automatically when the button is clicked.

XP Creating Submit and Reset Buttons A submit button is a button that submits the form to the CGI script for processing. A reset button resets the form to its original (default) values. The syntax for creating these two buttons is: ▫value attribute defines the text that appears on the button

XP Creating a Form Button The figure shows HTML tags for buttons that download a program, retrieves information, and resets the form to its original values.

XP Working with Form Attributes After adding the elements to your form, you’ll need to specify where to send the form data and how to send it. Use the following attributes: … ▫URL - the filename and location of the CGI script that process the form ▫Method - how your Web browser sends data to the CGI script ▫enctype - the format of the data stored in the form’s field

XP Specifying Where and How to Send Form Data This figure shows the CGI script that processes the form is located at the URL (a fictional address) and uses the “post” method.