COS 125 DAY 25. Agenda Assignment #7 Graded  2 A’s, 3 B’s, 2 C’s, 1 D, 2 F’s (late) and 5 non-submit Assignment # 8 Due Today Assignment #9 is posted.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
COS 125 DAY 24. Agenda Assignment 7 is due today Assignment 7 Assignment 8 (last one) is posted  Due May 2 Left to do  3 rd and final Capstone progress.
COS 125 DAY 23. Agenda Assignment 6 Corrected  5 A’s, 1 B, 1 C and 1 D  Problems with using CSS for layouts Assignment 7 is due today Assignment 7 Assignment.
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
COS 125 DAY 27. Agenda Assignment # 8 Due April 27 Assignment #9 Posted in Webct  Last one!!!!  Due May 4, 8AM Exam #5 is April 30  Castro Chap13,
Forms Describe common uses of forms on web pages
COS 125 DAY 25. Agenda Assignment #9 IS Due May 2, 3:35 PM Add to your form Exam #5 Results 6 A’s, 3 B’s, 1 C, 1 D, 1 F and 3 no-takes Capstones Projects.
COS 125 DAY 26. Agenda Assignment #7 Graded  10 A’s, 4 B’s, and 1 non-submit Assignment # 8 Due April 27 Assignment #9 will be assigned in WebCT by Tuesday.
COS 125 DAY 25. Agenda Assignment #8 Graded 4 A’s, 4 B’s, 2 C’s, 1 F’s and 4 non-submit Assignment #9 is posted Due May 2, 3:35 PM Add to your form Exam.
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.
COS 125 DAY 28. Agenda Assignment #9 Results 6 A’s, 2 C’s, 2 D’s, 2 F’s and 3 non-submits Assignment Avgs 4 A’s, 6 B’s, 1 D, and 4 f’s Exam #5 Results.
Creating Web Page Forms
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
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.
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?
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.
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.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
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.
Forms A Way for the User to Interact Copyright © newMANIC Inc. All rights reserved.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Website Development with PHP and MySQL Saving Data.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
HTML Forms.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
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.
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.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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.
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.
+ 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.
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 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.
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,
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.
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.
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.
Tutorial 6 Working with Web Forms
Chapter 5 Validating Form Data with JavaScript
COS 125 DAY 18.
Presentation transcript:

COS 125 DAY 25

Agenda Assignment #7 Graded  2 A’s, 3 B’s, 2 C’s, 1 D, 2 F’s (late) and 5 non-submit Assignment # 8 Due Today Assignment #9 is posted  Last one!!!!  Due May 2, 3:35 PM Exam #5 is April 29  Castro Chap13, 14, 15 & 16  25 M/C questions, WebCT  60 min Capstones Projects  Everything is due MAY 5 at 5PM  Presentations on May 2 and 5 Website for text book  Website for examples  Lecture/Discuss Forms

Re-Scheduling of Capstone Presentations May 2  Steve  Joshua  Doug  Heather May 5  Sam  Josee  Trokon  Paul  Kristin  Billy  Brandon

Learning Objectives What are forms?? Understand how to create an xHTML form Understand that most forms require a CGI script Understand how to submit a form by without a CGI script Be aware of form hosting services as a alternative way to process forms Use form fieldset elements Use form label elements Use tabindex and accesskey attributes to improves a form’s accessibility Understand how to disable form elements Understand how to display form contents in a way that cannot be changed

What is a form?? A form is a way to actively collect or display information to or from a web site viewer What can you do with forms?  Get feedback  Have a guestbook  Take a survey  See who’s visiting you  Sell stuff  And much more!

Form example

Form Example

What is a form? Two basic parts  Structure or shell Fields Labels Buttons Graphic User Interface components  Scripts to process information collected CGI JavaScript ASP

About CGI Scripts A script is a program written in a scripting language  Perl  VBscript  JavaScript Script runs on Web Server through a Interface  Requires Web Server administrator  Common gateway Interface  ASP engine  JavaScript interpreter

What do Scripts do Elements in forms  Collect data Name Values pairs  Display data Name values  Perform actions Buttons Scripts  Do something with data collected  Format data for display  Add functionality to action elements

Getting a Script First ok use of scripts with the web server administrator Search web for free (or near free scripts)    

Creating A Form A form has 3 important parts  The form  The script that process the form  The form elements Text boxes Buttons Menus Example Stuff

Sending From Data via If you don’t want to use scripts you can have form data sent to you via … form elements…

Form example

Using a Form Hosting Service An option to creating scripts is using a form hosting service Steps  Find a hosting service  Connect to hosting service  Read the site info  Follow their instructions

Creating text boxes Text boxes contain one line of free-form text Provide prompt to the users  “Type your comments in the area provided.”  Value is default text that will appear in text box  Size is the display area in number of characters  Maxlength is maximum number of characters the text box will accept Usually size < maxlenght

Creating Password box The difference between a text box and a password box is that the user will not see what they are typing. The characters are replaced with ** Give the user a prompt  Enter password:

Creating Radio Buttons Radio Buttons allow you to select only one possible response from a list The following creates a list of 3 choices with the third choice already selected. Name must be the same for all radio buttons in the same group Choice A Choice B Choice C

Creating Checkboxes Checkboxes allow you to select as many responses as you like from a list The following creates a list of 3 choices with the third choice already selected. Name must be the same for all checkboxes in the same group Choice A Choice B Choice C

Creating Drop Down Menus

Prompt the user  “Select one of the list:” The following creates a drop down of N lines with 3 choices. Menu 3 is preselected. Menu 1 Menu 2 Menu 3

To Create Grouped menus Create a menu as described on previous slide Before the 1 st option tag in the 1 st group … After the last option you wish to group

Creating a Larger Text Area Gives user more room to write than text box Prompt the user  “Enter comments here:” Default Text  Can accepted up to 32,700 characters  Scroll bars appear when user types in more text than visible area

Allowing a user to Upload Files Requires a special CGI script What files are you sending?

Allowing a user to Upload Files

Hidden Fields The data is embedded in form and users doesn’t see and can’t modify Must give a value Data will be passed to script

Creating the Submit Button When depressed will send all name value pairs to script  The text given for value will appear on the button You can use many submit buttons if you name them You can add an image to a submit (or any other) button You can use CSS to style buttons

Resetting the Form Resetting will cause all entered data on the form to be reset You can add an image to a reset (or any other) button

Using an Image to Submit Data Create a GIF or JPEG image Position of cursor when mouse is clicked will be relayed to script as  Coord.x  Coord.y

Using an Image to Submit Data

Organizing The Form elements You can some group elements in your form After but before the first element you wish to group Name of Grouping After the elements you wished to group

Fieldsets

Other form attributes Labels  Label text  Will place “Label text” before the form element with id=“aName”  Can be formatted with CSS Setting tab orders  tabindex=“N” in element opening tag Adding keyboard shortcuts  acesskey = “B” in element opening tag Disabling an element  Disabled=“disabled” Prevent a element from being modified  Readonly=“readonly”

Capstone Update Place your capstone project files in the capstone directory on the ftp server Call the start page of your website “main.htm” and place in the capstone directory Place your PowerPoint Presentation in this same directory You will be able get to capstone through the menu

Assignment #9 Create a Guest Book Students Create the input form  Collect the following info Name Age Status Favorite URL Comments Instructor wrote the ASP Scripts that create the guest book The script will give you errors if your form isn’t correct

Assignment #9 If you get this after submitting your form, than your form is either incorrect Or the user did not use the form correctly

Assignment #9 If you get this after submitting your form, than your form is working correctly

Assignment #9