HTML Forms. Today’s Lecture We will try to understand the utility of forms on Web pages We will find out about the various components that are used in.

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

Video, audio, embed, iframe, HTML Form
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.
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.
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.
Gathering Requirements What do users want?. Information Gathering Techniques Surveys Interviews Focus Groups.
16/19/2015CS120 The Information Era CS120 The Information Era Chapter 5 – Advanced HTML TOPICS: Introduction to Web Page Forms and Introductory Javascript.
Personal Independent Networking Project HTML Forms by Chris Smith.
1 CS101 Introduction to Computing Lecture 12 Interactive Forms (Web Development Lecture 4)
File Upload Instructions and Information The File Upload utility is used for transferring files too large to send through the system. How it Works:
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Interactive Form 1 Edited By; L.Maha AlAjmi. Revision 2 We learnt how to extend our Web pages by adding a few more tags Specifically, we discussed various.
Principles of Web Design 6 th Edition Chapter 11 – Web Forms.
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.
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?
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
1 VU. 2 CS101 Introduction to Computing Lecture 15 More on Interactive Forms (Web Development Lecture 5)
Introduction to JavaScript + More on Interactive Forms.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
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.
JavaScript. During the last lecture We looked at the utility of forms on Web pages We found out about the various components that are used in a form We.
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.
HTML Forms. Today’s Lecture We will try to understand the utility of forms on Web pages We will find out about the various components that are used in.
ITCS373: Internet Technology Lecture 5: More HTML.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
1 HTML Forms
Introduction to JavaScript CS101 Introduction to Computing.
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.
HTLM Forms CS3505. Form Handling in Browser html User Files out form WEbBROWSErWEbBROWSEr User read response submit Get URL?input html Get file html script.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
+ FORMS HTML forms are used to pass data to a server. begins and ends a form Forms are made up of input elements Every input element has a name and value.
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.
HTML Forms.
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.
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.
1 Web Engineering Forms Lecture 05. FORMS Its how HTML does interactivity. There are quite new feature in HTML5. But the fundamental idea does not change.
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.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
How to Write Web Forms By Mimi Opkins.
FORMS Explained By: Sarbjit Kaur.
ITE 115 Creating Web Page Forms
Web Programming– UFCFB Lecture 10
Designing Forms Lesson 10.
Web Development & Design Foundations with H T M L 5
Forms Data Entry and Capture
FORM OBJECT When creating an interactive web site for the Internet it is necessary to capture user input and process this input. Based on the result of.
CNIT 131 HTML5 - Forms.
Focus of the last lecture was on HTML Lists & Tables
Creating Forms on a Web Page
Intro to Forms HTML forms are used to gather information from end-users. A form can contain elements like radio-buttons, text fields, checkboxes, submit.
Intro to Forms HTML forms are used to gather information from end-users. A form can contain elements like radio-buttons, text fields, checkboxes, submit.
Lesson 6: Web Forms.
Unit 5 Create Forms.
Presentation transcript:

HTML Forms

Today’s Lecture We will try to understand the utility of forms on Web pages We will find out about the various components that are used in a form We will become able to build a simple, interactive form

Focus of the last lecture was on HTML Lists & Tables We learnt how to extend our Web pages by adding a few more tags Specifically, we discussed various types of lists that can be added to a Web page – un-ordered, ordered and definition lists And also, about tables: about various tags used in a table and their associated attributes

Interactive Forms (1) Without forms, a Web site is “read-only” – it just provides information to the user Forms enable the user to provide information to the Web site. For example, the user can: –Perform searches on Web site –Give comments –Ask for info that is not available on the Website –Place order for goods and services

Interactive Forms (2) Can be simple or very complex Can fill a whole page or just a single line Can contain a single element or many Are always placed between the and tags of a Web page

Interactive Forms (3) Are GUI-based May contain: –Text fields –Check boxes –Buttons –Radio buttons –Scrollable lists

Example of a simple, interactive form

Code for that Example Send to me Send to me Code for the instructions Code for the form

Example of a simple, interactive form

Code for the Instructions To send an message to me: Type your address in the "From" field Type a short message in the "Message" field Press the "Send to me" button

Example of a simple, interactive form

Code for the Form Elements of the form

Elements of the form name: Name given to the form method: Forms can be submitted through two alternate methods – GET & POST action: Specifies the URL that is accessed when the form is being submitted

Server-Side Scripts Programs that reside on Web servers Receive info that a user enters in a form Process that info and take appropriate action Examples: –CGI scripts on Unix servers –ASP scripts on Windows servers

Example of a simple, interactive form

Elements of the Form (1) From: Message:

Example of a simple, interactive form

Elements of the Form (2)

Example of a simple, interactive form

From: To: Subject: Message:

Review of the Tags Used in Forms

<FORM name=“nameOfTheForm” method=“get” or “post” action=“URL” > Elements of the form

Single-Line Text Input Field <INPUT type=“text” name=“fieldName” size=“widthInCharacters” maxlength=“limitInCharacters” value=“initialDefaultValue” >

Hidden Input

Submit Button Input

Multi-Line Text Input Area initial default value

This was a review of the new tags (and associated attributes) that we have used in today’s examples There are many more tags that can be used in a form Let us take a look at a few

User Name: Password:

Password Input Field <INPUT type=“password” name=“fieldName” size=“widthInCharacters” maxlength=“limitInCharacters” value=“initialDefaultValue” >

User Name: Password: Remember my user name and password

Checkbox Input Element <INPUT type=“checkbox” name=“checkboxName” checked value=“checkedValue” >

Office

User Name: Password: Logging in from: Home Home University

Radio Button Input Element <INPUT type=“radio” name=“radioButtonName” checked value=“selectedValue” >

What is the difference between checkboxes and radio buttons?

User Name: Password: Logging in from: Home Office University

Select from a (Drop Down) List <SELECT name=“listName” size=“numberOfDisplayedChoices” multiple > text1 text2 …

File Upload Input Element <INPUT type=“file” name=“buttonName” value=“nameOfSelectedFile” enctype=“fileEncodingType” >

Reset Button Input Element ( Resets the contents of a form to default values ) <INPUT type=“reset” value=“displayedText” >

Today’s Lecture was the … We looked at the utility of forms on Web pages We found out about the various components that are used in a form We became able to build a simple, interactive form