Copyright © Texas Education Agency, 2013. All rights reserved.1 Web Technologies Website Forms / Data Acquisition.

Slides:



Advertisements
Similar presentations
24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
Advertisements

FORMs Lesson TBE 540. Prerequisites Before beginning this lesson, the learner must be able to… –Create basic web pages using a text editor and/or a web.
Lecture 14 HTML Forms CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
Technologies for web publishing Ing. Václav Freylich Lecture 4.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
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
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
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?
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms.
Activity 2 Building a survey form using Dreamweaver Procedure
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 7: Web Forms © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
HTML Concepts and Techniques Fourth Edition Project 7 Creating a Form on a Web Page.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
HTML Forms.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
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.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
HTML : Forms, Frames Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
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.
TJ 3043 – Web Application Development HTML Form. 2.0 Forms A form is the usual way to communicate information from a Web browser to a server HTML has.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
FORMS. Forms are used to receive information from the web surfer, such as: their name, address, credit card, etc. Form fields are objects that allow.
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.
Introduction To HTML Form Inputs Written By George Gimian.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
©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.
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.
Netprog CGI and Forms1 CGI and Forms A detailed look at HTML forms.
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.
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.
1 HTML Forms
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Web Forms. Web Forms: A form allows our web visitors to submit information to us. Some examples uses for forms are to let the web user contact us, fill.
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.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
Informatics Computer School CS114 Web Publishing HTML Lesson 4.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Web Development & Design Foundations with H T M L 5
Creating Forms on a Web Page
Introduction to HTML: Forms
Presentation transcript:

Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition

Web Forms Copyright © Texas Education Agency, All rights reserved.2

What do Web Forms Do? Copyright © Texas Education Agency, All rights reserved.3 HTML supports tags that allow you to create forms; it does not have the ability to process the information collected from the form. When you create a form, the values inside the form are sent to a script. The script then uses the values it has been given to perform the action it was programmed to do.

The Form Block The form should be enclosed with an opening and closing form tag. The form block will group the data together to be sent to the script for processing. Copyright © Texas Education Agency, All rights reserved.4

The form tag attributes The form tag contains two required attributes. action – specifies where the data in the form should be sent for processing This value is typically a URL or a script file. method – specifies how the data is to be sent to the script post – The data is sent through a virtual network pipe to the script; generally more secure. get – The data is sent through the url and is visible; the data can be cached by the browser and less secure. Copyright © Texas Education Agency, All rights reserved.5

The form tag attributes Copyright © Texas Education Agency, All rights reserved.6 The data collected from this form will be sent by post to the address in the action.

Collecting Data Most data is collected using the input tag. There are other tags as well that can collect data. The input tag will create a form field. The input tag should include the name attribute so the script will know what the data represents. The input tags in the form must be able to match up with the script. Copyright © Texas Education Agency, All rights reserved.7

The input tag The input tag requires at least two attributes: name – identifies the data collected in the field type – specifies which type of field to create Copyright © Texas Education Agency, All rights reserved.8

Hands-on Practice Open a new document in your text editor and enter the following code Copyright © Texas Education Agency, All rights reserved.9 Forms Sample Code 1

Hands-on Practice Add the additional text shown in red to your document Copyright © Texas Education Agency, All rights reserved.10 <form method=“post” action=“ Sample Code 2

The text field Text fields are created using the input tag and setting the type to text. The text field is used to input single lines of information. Copyright © Texas Education Agency, All rights reserved.11 <form method=“post” action=“ Username: Sample Code 3

The text field Save your document as forms.htm and preview it in your web browser. You should see the following form. Copyright © Texas Education Agency, All rights reserved.12

Password Field Password fields are created using the INPUT tag and setting the TYPE to password. The password field is used to input single lines of information that need to be masked. Data is NOT encrypted. Copyright © Texas Education Agency, All rights reserved.13 Username: Password: Sample Code 4

Password Field Copyright © Texas Education Agency, All rights reserved.14 Resave the document and refresh it in your browser. You should get the following output.

Hidden Fields Hidden fields are often used in forms to send additional information that is not entered by the visitor to the processing script. Hidden fields do not show up on the form… they are hidden, but the information is still sent. Copyright © Texas Education Agency, All rights reserved.15 <form method=post action=“ Username: Sample Code 5

Submit Button Submit buttons are created using the INPUT tag and setting the TYPE to submit. The Submit button is used to send data from a form to a processing script. When the Submit button is clicked, it will automatically send all data entered into the form to the processing script. Copyright © Texas Education Agency, All rights reserved.16

Reset Button Copyright © Texas Education Agency, All rights reserved.17 The Reset button is used to clear information out of a form. Reset buttons are created using the INPUT tag and by setting the TYPE to reset.

Submit Button Copyright © Texas Education Agency, All rights reserved.18 Password: Add the additional text shown in red to your document. Sample Code 6

Checking the Form Copyright © Texas Education Agency, All rights reserved.19 Resave your document and refresh it in the browser. Enter the following information into your form. Username: student Password: web Click login. If you did everything correctly, you should get a confirmation screen.

Radio Buttons Radio buttons are created using the INPUT tag and setting the TYPE to radio. Radio buttons should be grouped by assigning each element the same name, however, each radio button should have a different value. Copyright © Texas Education Agency, All rights reserved.20

Radio Buttons Copyright © Texas Education Agency, All rights reserved Sample Code 7 Add the additional text shown in red to your document.

Radio Buttons Resave your document and preview it in your browser. Copyright © Texas Education Agency, All rights reserved.22 Click on each radio button; you should only be allowed to select one at a time.

Checkboxes Radio buttons are created using the INPUT tag and setting the TYPE to checkbox. Checkboxes allow you to select whether or not an option is true or false. Copyright © Texas Education Agency, All rights reserved.23

Checkboxes Add the following code below the radio buttons on your form. Copyright © Texas Education Agency, All rights reserved Webmastering BCIS Multimedia Sample Code 8

Copyright © Texas Education Agency, All rights reserved.25 Resave your document. You should see the checkboxes below the radio buttons. You should be able to select multiple checkboxes.

Textarea The textarea is created by using the tag. The Reset button is used to clear information out of a form. The textarea may be used when large amounts of text should be entered by the visitor. The attributes COLS and ROWS may also be added to the TEXTAREA tag to specify the size. Copyright © Texas Education Agency, All rights reserved.26

Copyright © Texas Education Agency, All rights reserved.27 Web Design The following code will create a text area. Add the following to your forms.htm document below the checkboxes. The textarea is used for entering large blocks of text, such as an message. Sample Code 9

Copyright © Texas Education Agency, All rights reserved.28 Resave your document. You should see the textarea with the default text written in the field.

Select menu The select menu, can be created to allow visitors to select an item from a list. The and tags should surround the entire list. Each option (item in the list) should be proceeded by the tag. Only the selected item will be displayed. Copyright © Texas Education Agency, All rights reserved.29

Copyright © Texas Education Agency, All rights reserved.30 Freshman Sophomore Junior Senior Add the following code to forms.htm. The code below will create a dropdown list, or select box. Sample Code 10

Copyright © Texas Education Agency, All rights reserved.31 Resave your document. The select box should show Junior as the selected option.