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.

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

23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
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.
Hyperlink & Form Pertemuan 11 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
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.
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.
Form Basics CS Web Data  Most interesting web pages revolve around data  examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes  can.
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.),
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.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
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.
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.
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.
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 
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.
HTML Forms A Preliminary Step into Dynamic Web Fred Durao
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.
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.
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.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
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.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
©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.
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 III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
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.
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.
 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.
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.
Introduction to HTML: Forms
Presentation transcript:

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 tags to create a collection of objects that implement this information gathering This objects are called widgets (e.g., radio buttons, text box and checkboxes) The values (user input) in a form are call form data. Every for requires a Submit form. When the Submit button of a form is clicked, theform’s values are sent to the server All of the widgets, or components of a form aredefined in the content of a tag

4.0 Forms (cont.) - The only required attribute of is action, which specifies the URL of the application that is to be called when the Submit button is clicked action = " - If the form has no action, the value of action is the empty string

4.0 Forms (cont) - The method attribute of specifies one of the two possible techniques of transferring the form data to the server, get and post post – append form data to the browser request, which contains protocol (e.g. HTTP) and the requested resource’s URL get – append form data directly to the end of the URL (e.g. /cgi-bin/formmail) - Widgets - Many are created with the tag - The type attribute of specifies the kind of widget being created

4.1 Widgets -Many are created with the tag -The type attribute of specifies the kind of widget being created -Example: -Text -Checkbox -Radio button -Menu -Text area -Reset and Submit button

ValueDescription buttonDefines a clickable button (mostly used with a JavaScript to activate a script) checkboxDefines a checkbox fileDefines an input field and a "Browse..." button, for file uploads hiddenDefines a hidden input field imageDefines an image as a submit button passwordDefines a password field. The characters in this field are masked radioDefines a radio button resetDefines a reset button. A reset button clears all data from a form submitDefines a submit button. A submit button sends form data to a server textDefines a one-line input field that a user can enter text into. Default width is 20 characters Attribute Values

4.1 Widgets (cont) text menu radio button text area

4.2 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) l 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 If the contents of text should not be displayed (eg. Password) when user enter the value, you can used the following tag.

4.3 Checkbox 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 query string By default, no checkbox is initially ‘checked’ To initialize a checkbox to ‘checked’, the checked attribute must be set to "checked“ 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

4.4 Radio button 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

4.5 Menu Created with tags 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

4.5 Menu (cont) 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

4.5 Menu (cont) - After clicking the menu: - After changing size to 2:

4.6 Text area 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

4.6 Text area (cont) Please provide your employment aspirations <textarea name = "aspirations" rows = "3” cols = "40"> (Be brief and concise)

4.7 Reset and Submit button - 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 - Reset button will clear/empty all the input field (set to default ) -Popcorn.htmlPopcorn.html