Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.

Slides:



Advertisements
Similar presentations
Technologies for web publishing Ing. Václav Freylich Lecture 4.
Advertisements

HTML and XHTML Controlling the Display Of Web Content.
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.
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.
Using Entities & Creating Forms Jill R. Sommer Institute for Applied Linguistics Kent State University.
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 –
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.
HTML Forms What is a form.
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?
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
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.
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.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
 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.
IDK0040 Võrgurakendused I harjutus 05: Forms Deniss Kumlander.
1 HTML Forms
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
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.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
1 HTML Forms
1 Review of Form Elements. 2 The tag Used in between tags.  Form elements(text control, buttons, etc.. ) goes here. OR  Form elements(text control,
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.
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.
Web Page Design Forms! Website Design. Objectives What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons.
+ 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.
1 HTML forms (cont.)
©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.
HTML Forms.
Week 10: HTML Forms HNDIT11062 – Web Development.
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.
1 HTML forms (cont.)
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.
Introduction to Web Site Development Department of Computer Science California State University, Los Angeles Lecture 8: Forms and Controls.
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.
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.
How to Write Web Forms By Mimi Opkins.
Introducing Forms.
Creating Form Elements
Presentation transcript:

Supplement Creating Forms

Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields

Usage of Forms Forms are used to interact with a web server Forms are used to send information to a secondary server (e.g. Database) Forms are used to send information to a person (e.g. via )

The Tag The opening & closing Form tags surround the input fields & action buttons on the form “Required” attributes include: – Action: States what happens when the form is submitted – Name & ID: References that are used in other parts of the document to reference the contents of the form – Method: values can be “get” or “post”, “get” is default although “post” is usually recommended “Optional” attributes: – EncType: what type of elements are used on the form application/x-www-form-urlencoded multipart/form-data if a file is uploaded with the other data

Tags used as form elements is the workhorse. It’s used to create a variety of different types of input fields is a drop-down or list-box form element is a large, multi-line text input area

Input type “text” Standard entry field used in form tags Used for entering name, address, etc. Required attributes: – Name & ID: Used for reference & variable names – Size: Width as the field appears on the web page – MaxLength: Maximum number of characters that can be entered Optional attributes: – Readonly (4.0 only) – Value: if you want to set a default text for the field

Input type “hidden” Used to send information to form processing application that you don’t want the user to see Required attributes: – Name & ID: Used for reference & variable names – Value: The value associated with the variable (ID) that is to be sent

Input type “radio” Creates multiple options from which the user can select only one Required attributes: – Name & ID: Used for reference, variable names, and to group radio buttons together – Value: Used as the value that gets sent when the form is submitted if this button is selected Optional attributes: – Checked: Used to select this button when the form is loaded Ship by UPS Ship by FedEx

Input type “checkbox” Creates a Yes/No option available to users Required attributes: – Name & ID: Used for reference & variable names Optional attributes: – Checked: Used to select this button when the form is loaded – Value: Used as the value that gets sent when the form is submitted if this button is selected Caveat: If button is not checked, no variable or value is sent to form processor Ship Quickly

Input type “button” Used to perform an action (e.g. check values, automatically fill in values, submit, etc.) Required attributes: – Name & ID: Used for reference – Value: Text that appears on the button Caveat: Useless without DHTML

Input type “submit” Used to perform an the form’s action Required attributes: – Name & ID: Used for reference Optional: – Value: Text that appears on the button (Submit by default)

Input type “reset” Used to perform reset the values on the form to what the default values were, erasing all user input Required attributes: – None Optional: – Name & ID: Used for reference – Value: Text that appears on the button (Reset by default)

Input type “file” Used to send a file to the program processing the form Required attributes: – Name & ID: Used for reference & variable names Optional: – Size: Number of characters to display the name of the file

“Select” field Creates multiple options from which the user can select one or more Required attributes: – Name & ID: Used for reference, variable names, and to group radio buttons together – Size: How many lines are used to display the listbox (1 for a dropdown box) Ship by UPS Ship by FedEx

“TextArea” field Entry field used in forms for submitting large amounts of text information Used for entering name, address, etc. Required attributes: – Name & ID: Used for reference & variable names – COLS: Width as the field appears on the web page – ROWS: Number of lines