Web Page Design Forms! Website Design. Objectives What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons.

Slides:



Advertisements
Similar presentations
Lecture 14 HTML Forms CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
Advertisements

Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
David Lash DePaul University SNL 262 Web Page Design Forms! - Chapt 7 Instructor: David A. Lash.
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.
AdvWeb-1/12 DePaul University SNL 262 Web Page Design Forms! - Chapt 8 Instructor: David A. Lash.
USER INTERACTIONS: FORMS
David Lash DePaul University SNL 262 Web Page Design PHP and Dynamic Pages Web Wizard’s Chapter 1 Instructor: David A. Lash.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
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 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Tutorial #9 – Creating Forms. Tutorial #8 Review – Tables Borders (table, gridlines), Border-collapse: collapse; empty-cells: show; and rowspan, colspan.
Advance Database Management Systems Lab no. 5 PHP Web Pages.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
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?
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Web111a_chapt06.ppt HTML: Section 6 Forms HTML tags: define data input and/or output Define the Input and/or Output on the web page Do not process the.
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.
HTML II. Factors to consider in designing a website. Organizing your files. HTML Tables. Unordered Lists. Ordered Lists. HTML Forms. Learning Objectives.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
Website Development with PHP and MySQL Saving Data.
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.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
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.
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.
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.
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 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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
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.
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.
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.
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.
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.
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.
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.
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.
Web Development & Design Foundations with H T M L 5
Presentation transcript:

Web Page Design Forms! Website Design

Objectives What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons Select options Formatting Forms Cleanly

Competency Objectives Can use forms to 1.Send data via 2.Create basic form elements 3.Format forms properly 4.Send forms to server side program Competency Alert: You need to know this ! Common Problem Area! People seem to forget this

HTML Forms HTML Forms are used to: Gather survey information on web Submit passwords Structure queries on a database Submit orders

HTML Forms When submit a form it can be sent: to a script (program) on a web server for processing via to a valid address HTML Form Submit Program or database on Webserver (e.g., ecnu) Your machine Web Server

HTML Form Elements Text Box Radio Buttons Check Box Select Box Text Area Submit/Reset button

Objectives What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons Select options Formatting Forms Cleanly

Starting and Ending Forms HTML forms are created by using the HTML and tags. Within these tags, you place various HTML form elements, such as text areas, check boxes, and radio buttons. For example,..  ---(Your FORM elements here). Competency Alert: You need to know this !

Two primary arguments <FORM ACTION=” METHOD=”POST”> get appends the form arguments to the end of the Web address. post sends the data as part of the body of the HTML document. Will use post since get method may limit the amount of data you can send. ACTION= - Specifies the URL of the receiving file/program to start when the form is submitted METHOD= - Defines the argument format that will be used to send data to the receiving program/file.

Some Form Tag Examples Send the results to a program: Send the results via Most sites don’t use address submission: The you get is a messy . Requires client (end-user) to have correct default defined Usually want more control, (e.g., send to multiple addresses or log to a file, or hide precise location of where goes) Look over internet for this program Sends results via to this address. Look in my current directory.

Form tag with mailto: attribute This form has the following form tag: Pre-addressed mail is created. Here with Mozilla (even though it is not set up properly on this computer.)

Tag elements within … Your Form Here (Checklists, Text Boxes, Drop-down lists, buttons, etc)

Objectives What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons Select options Formatting Forms Cleanly Competency Alert: You need to know this !

Creating Text Boxes Text boxes are those input areas on a form where the customer can input free-format typing. Text Box

Text Box: Format Please Enter Your Full Name <Input Type="Text" SIZE=20 MAXLENGTH=30 Name="fullname"> Where Please Enter Your Full Name - is text to display immediately before the text box. Input Type - A keyword that says how input will come in. You can say "Text" - for text boxes with characters displayed in box as typed. "Passwd" - For text boxes with asterisks "*" displayed in box as typed. SIZE= Width of (in chars) the input box. MAXLENGTH= - The max number of characters the user can type into box. Name= The name identifier passed to the program. (E.g., name=“Zhou Hong" )

Text Box: Format Please Enter Your Full Name Where Name= The name identifier passed to the program. Note: If the above was sent via the mailto: attribute, the resulting would look like: fullname=Zhou+Hong

Text Box: Password Can also create a password text box that: Works like a text box except input is shown as asterisks, For example: ******* Note: Most sites do NOT use this mechanism to transmit password because: It transmits passwords in clear text over internet (anyone who can tap physical network can view it. Please Enter you password

Text Area: Format Just like text box but bigger. <textarea NAME="UNIT_COMMENTS" ROWS=4 COLS=70 >Your comments here Name= The name identifier passed to the action. (E.g., name=”UNIT_COMMENTS”) ROWS, COLS = Number of cols and rows of text box

Check Boxes Check boxes are pre-defined optional input that you check. Checkbox

Check Boxes: General Format Pick your favorite: Baseball Hockey Soccer Pick your favorite: - This is a string of characters the shows up before check box. input TYPE="checkbox" - Says create a checkbox within the form. NAME=“soccer" - a name (e.g., soccer) to the checkbox that will be passed to the software. VALUE=“Like soccer" - Specifies the initial value of the control (all set to “like soccer”) Note: you can include a checked attribute that checks the box initially.

Radio Buttons: General Format Radio Boxes – How is Web Site Design Going : I get my extra sleep in class. I get so confused I get lost trying to find my car after class. I gave up and copy my answers from my neighbor. Great class can't wait for the movie. Specifies to create a radio button Logical name is “variable1” Variable1 is “set” to “great” if this item is picked For radio buttons to cooperate together, must use same name.

Selection Lists Use tag to create scrolling and pull-down pick lists. Electric windows AM/FM Radio Turbo Charger name = the label shown from the mail. size =number of selections shown multiple = allow multiple options to pick option = the option to pick options selected = pre-selected option.

Submit Buttons Submit - (send the form) Can also reset Create a submit button Put this text on the button.

Objectives What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons Select options Formatting Forms Cleanly

Putting it all together Survey Form Class Survey Name: Class: Class Evaluation: Great Average Fair Poor Comments: Common Problem Area! People seem to forget this

Cleaning it up with Tables Class Survey Name: Class Class Evaluation: Great Average Fair Poor Comments Competency Alert: You need to know this !

Sending Data to Scripts As previously mentioned can set up forms to send data to scripts: Need to know URL of script on webserver Need to coordinate webserver script with your form E.g.,if use then the receiving script must be looking for input variable in_name

Example form sending to script Forms Example Please pick a color... Red Blue Green Please provide your name Password Example <?php $color = $_POST['color']; $name = $_POST['yourname']; print " "; print "Hello, your name is $name "; print " "; ?> receiving.php set_color.html Name must match Note: for this example to work correctly both set_color.html and receiving.php must be in the same folder on the webserver.

Summary What forms can do The Attributes of the form tag Using Textboxes Textareas Checkboxes Radio buttons Select options Formatting Forms Cleanly

Hands-on Lab Create an HTML form that looks like the following: Use the mailto form attribute to mail the results to an address.

One possible solution form check Pick you favorite sports Team: Bears Cubs Sox Bulls Your Name

Hands On Lab 2 Create an HTML form that looks like the following: