HTML Forms A Preliminary Step into Dynamic Web Fred Durao

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

Hyperlink & Form Pertemuan 11 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
Lecture 14 HTML Forms CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
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 Forms Section A - Working with Forms in JavaScript.
Forms. Form An HTML form is a section of a document containing normal content, special elements called controls (checkboxes, radio buttons, buttons, etc.),
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?
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.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
1 XHTML Forms A form is the mechanism to –Collect information from a browser user –Transmit collected information from a browser to a server HTML/XHTML.
HTML - Forms By Joaquin Vila, Ph.D.. Form Tag The FORM tag specifies a fill-out form within an HTML document. More than one fill-out form can be in a.
Forms Sangeetha Parthasarathy 02/05/2001. Introduction to Forms A form makes it possible to transform your web pages from text to graphics to interactive.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Suzanne J. Sultan Javascript Lecture 2. Suzanne J. Sultan function What is a function> Types of functions:  Function with no parameters  Function with.
CP476 Internet Computing Lecture 7 HTML 1 What is HTML? HyperText Markup Language (HTML) is an application of Standard Generalized Markup Language (SGML)
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
HTML - Forms By Joaquin Vila, Ph.D.. Form Tag The FORM tag specifies a fill-out form within an HTML document. More than one fill-out form can be in a.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
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.
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.
1 Form Elements  Form elements have properties: Text boxes, Password boxes, Checkboxes, Option(Radio) buttons, Submit, Reset, File, Hidden and Image.
CP102 Module 7: HTML 1 Module 7: HTML 1.What is 1.What is HTML? 2. 2.Basic syntax, document structure 3. 3.Basic formatting, images, links 4. 4.Lists,
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.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
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.
TJ 3043 – Web Application Development HTML Form. 2.0 Forms - A form is the usual way information is gotten from a browser to a server - HTML has tags.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
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.
+ 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.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
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.
HTML Form Inputs. Creating a basic form …content goes here…
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.
HTML Forms.
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.
1 HTML forms (cont.)
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
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.
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.
 Derived from SGML  Original intent: General layout of documents that could be displayed by a wide variety of computers  HTML standards by W3C: › The.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
How to Write Web Forms By Mimi Opkins.
Objectives Design a form Create a form Create text fields
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Introducing Forms.
Forms, cont’d.
Creating Forms on a Web Page
Introduction to HTML: Forms
Presentation transcript:

HTML Forms A Preliminary Step into Dynamic Web Fred Durao

HTML Forms Server Room User HTTP request singUp (login,password) Action: Sign up for a web site HTTP response Success/Fail

HTML Forms – What we expect to see in the end New HTML elements

Forms (continued) - The method attribute of specifies one of the two possible techniques of transferring the form data to the server, get and post - Widgets - Many are created with the tag - The type attribute of specifies the kind of widget being created 1. Text - Creates a horizontal box for text input - Default size is 20; it can be changed with the size attribute - If more characters are entered than will fit, the box is scrolled (shifted) left

Forms (continued) - If you don’t want to allow the user to type more characters than will fit, set maxlength, which causes excess input to be ignored - Widgets should be placed in label elements Phone: 2. Password – just like text except asterisks are displayed, rather than the input characters 3. Checkboxes - to collect multiple choice input - Every checkbox requires a value attribute, which is the widget’s value in the form data when the checkbox is ‘checked’ - A checkbox that is not ‘checked’ contributes no value to the form data - By default, no checkbox is initially ‘checked’ - To initialize a checkbox to ‘checked’, the checked attribute must be set to "checked"

Forms (continued) - Widgets (continued) Grocery Checklist <input type = "checkbox" name ="groceries" value = "milk" checked = "checked" /> Milk <input type = "checkbox" name ="groceries" value = "bread“ /> Bread <input type = "checkbox" name = "groceries" value= "eggs" /> Eggs

Forms (continued) 4. Radio Buttons - collections of checkboxes in which only one button can be ‘checked’ at a time - Every button in a radio button group MUST have the same name - If no button in a radio button group is ‘pressed’, the browser often ‘presses’ the first one; Age Category <input type = "radio" name = "age" value = "under20" checked = "checked" /> 0-19 <input type = "radio" name = "age" value = "20-35" /> <input type = "radio" name = "age" value = "36-50" /> <input type = "radio" name = "age" value = "over50" /> Over 50

Forms (continued) Radio Example

Forms (continued) 5. The tag - There are two kinds of menus, those that behave like checkboxes and those that behave like radio buttons (the default) - Menus that behave like checkboxes are specified by including the multiple attribute, which must be set to "multiple" -The name attribute of is required - The size attribute of can be included to specify the number of menu items to be displayed (the default is 1) - If size is set to > 1 or if multiple is specified, the menu is displayed as a pop-up menu

Forms (continued) - Widgets (continued) 5. (continued) - Each item of a menu is specified with an tag, whose pure text content (no tags) is the value of the item - An tag can include the selected attribute, which when assigned "selected“ specifies that the item is preselected Grocery Menu - milk, bread, eggs, cheese With size = 1 (the default) milk bread eggs cheese

Forms (continued) - After clicking the menu: - After changing size to 2:

Forms (continued) 6. Text areas - created with - Usually include the rows and cols attributes to specify the size of the text area - Default text can be included as the content of - Scrolling is implicit if the area is overfilled Please provide your employment aspirations (Be brief and concise)

Forms (continued) 7. Reset and Submit buttons - Both are created with - Submit has two actions: 1. Encode the data of the form 2. Request that the server execute the server-resident program specified as the value of the action attribute of - A Submit button is required in every form