SYST 28043 Web Technologies SYST 28043 Web Technologies XHTML Forms.

Slides:



Advertisements
Similar presentations
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.
Advertisements

>> Introduction to HTML: Forms. Introduction to HTML 5 Important HTML Tags HTML tags and attributes Images Hyperlinks Lists –{ordered | unordered | definition}
PHP Workshop ‹#› Forms (Getting data from users).
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.
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.
Forms Describe common uses of forms on web pages
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.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Forms, Validation Week 7 INFM 603. Announcements Try placing today’s example in htdocs (XAMPP). This will allow you to execute examples that rely on PHP.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
MS3304: Week 4 PHP & HTML Forms. Overview HTML Forms elements refresher Sending data to a script via an HTML form –The post vs. get methods –Name value.
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.
Brief Overview of Web Forms L. G. Piper Bunker Hill Community College 23 March 2011.
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.
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?
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
INTRODUCTORY Tutorial 8 Creating Forms. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Create an HTML form Create fields for text Create.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
BBK P1 Module2010/11 : [‹#›] Forms (Getting data from users)
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Week 9 - Form Basics Key Concepts 1. 1.Describe common uses of forms on web pages 2.Create forms on web pages using the form, input, textarea, and select.
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.
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.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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. 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.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
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.
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.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
HTML Form Inputs. Creating a basic form …content goes here…
HTML Forms.
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.
COS 125 DAY 17. Agenda  Assignment 7 not finished grading  Assignment 8 posted Due April 9  Capstone progress reports due  Quiz 2 Corrected 2 A’s,
1 HTML Forms. Objectives You will be able to: Compose HTML forms, to accept input from the user. Identify the different kinds of input tags that can appear.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
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.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
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.
XHTML Forms.
Tutorial 6 Working with Web Forms
How to Write Web Forms By Mimi Opkins.
ITE 115 Creating Web Page Forms
Today - Forms! WD Students produce a basic HTML/XHTML document using forms. Find the group that best matches the part of the project you are going.
HTML/XHTML Forms 18-Sep-18.
Designing Forms Lesson 10.
Introducing Forms.
HTML Forms and User Input
Creating Form Elements
Web Development & Design Foundations with H T M L 5
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.
Presentation transcript:

SYST Web Technologies SYST Web Technologies XHTML Forms

12/15/2015Wendi Jollymore, ACES2 Forms Used to get user input on a web page Can use scripts or server programs to process form data We’ll use PHP next week Form element Contains all the other elements that define your input controls

12/15/2015Wendi Jollymore, ACES3 Tag Tag Contains the entire form Attributes: method=“GET/POST” How the form data is sent to the server action=“” Contains the name of the file that processes your page …

12/15/2015Wendi Jollymore, ACES4 GET vs. Post GET Sends form data as part of URL After URL, a ? symbol, then data Name-value pairs fieldName=value Pairs separated with & field1=value1&field2=value2 This is not very secure or private

12/15/2015Wendi Jollymore, ACES5 GET vs. POST POST Data is sent in a separate input stream Allows you to send more data URL length is limited More secure GET data is recorded in server logs, browser history etc POST data is not We’ll talk more about GET/POST when we learn PHP

12/15/2015Wendi Jollymore, ACES6 Input Tags Most input controls can be defined with tag Type attribute defines the kind of input control: E.g. Text, password, checkbox, radio, hidden, button, submit, reset, file, etc. Value attribute The value the control has Depends on the type attribute

12/15/2015Wendi Jollymore, ACES7 Input Tags Name vs. ID Name attribute Unique name for this element Id attribute Same as name (replacing name, eventually) Sometimes you’ll use one or other Safer to just use both

12/15/2015Wendi Jollymore, ACES8 Text Boxes To get plain text input from user type=“text” Attributes maxlength=“n” Maximum number of characters allowed size=“n” Visible size of box in # of characters Value attribute Can contain default value in box

12/15/2015Wendi Jollymore, ACES9 Password Fields A text box that doesn’t show contents Shows * symbols instead of characters type=“password” Other attributes same as text box

12/15/2015Wendi Jollymore, ACES10 Check Boxes Used for on/off or yes/no type of questions Used for lists that allow multiple selections type=“checkbox” Value attribute contains the value sent to the server if box is checked Checked=“checked” Sets default to checked

12/15/2015Wendi Jollymore, ACES11 Radio Buttons Used for lists of items User can select only one type=“radio” name attribute must be the same for each radio button in a group Treats group like one input field Value attribute contains value returned for this field (selected button) checked=“checked” To select default item

12/15/2015Wendi Jollymore, ACES12 Buttons Submit button When clicked, triggers form processing type=“submit” Reset button Automatically reloads form Causes all controls to be reinitialized type=“reset” Set value property if you want these to day something else

12/15/2015Wendi Jollymore, ACES13 Buttons If you want some other kind of button type=“button” Need to set onclick event E.g. run a script

12/15/2015Wendi Jollymore, ACES14 Text Area A multi-line text box Max 1,024 characters Attributes: rows=“n” cols=“n” Sets number of visible rows and columns Default text goes between the tags

12/15/2015Wendi Jollymore, ACES15 Lists List Box A list of items that might show a scroll bar Drop-down list A list of items that you have to “pull down” to see Both use the tag size=“n” attribute To set the number of visible rows in list box Leave this out to make a drop-down list

12/15/2015Wendi Jollymore, ACES16 Lists Lists contain a set of elements Each one represents an item in the list Value attribute contains the value returned when an item is selected selected=“selected” For default selection tags Used to group items in the list

12/15/2015Wendi Jollymore, ACES17 Setting Tab Order The order in which the user moves from control to control using tab key A logical and natural tab order helps user fill out a form faster Tab index = the numeric order of tabbed controls tabindex=“n” added to an element

12/15/2015Wendi Jollymore, ACES18 Using Field Labels Most input controls will have prompts Field labels make pages more accessible They’re also very cool You can click the label to put cursor in/on control tag Prompt goes in between for=“” attribute The name of the control the label is paired with

12/15/2015Wendi Jollymore, ACES19 Using Field Labels Examples: Your Name: Your Gender: Male Female

12/15/2015Wendi Jollymore, ACES20 Fieldset and Legend Putting borders and labels around groups of controls Organization, neat, professional Adds a border Use CSS style attribute to customize Text label Put inside fieldset to add a label Can also customize with CSS

12/15/2015Wendi Jollymore, ACES21 Homework Exercise See Forms Notes Make up your own survey, or do the one in the notes Due at the end of next class Work on this during the rest of class Next class: Finish homework exercise given today PHP!