2004-2005 Academic Year, Spring Semester Bilkent University - Faculty of Art, Design and Architecture Department of Communication and Design CS 153 Introduction.

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

Tables Tables provide a means of organising the layout of data
Lecture 14 HTML Forms CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
CIS101 Introduction to Computing Week 08. Agenda Your questions JavaScript text Resume project HTML Project Six This week online Next class.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
HTML and XHTML Controlling the Display Of Web Content.
Academic Year, Spring Semester Bilkent University - Faculty of Art, Design and Architecture Department of Communication and Design CS 153 Introduction.
Tutorial 6 Working with Web Forms
Computing Concepts Advanced HTML: Tables and Forms.
Form Basics CS Web Data  Most interesting web pages revolve around data  examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes  can.
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.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Table, Forms, Metatags and Frames.
Creating Web Page Forms
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
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.
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?
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.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
1 HTML محمد احمدی نیا 2 Of 43 What is HTML?  HTML stands for Hyper Text Markup Language  HTML is not a programming language, it.
CSC 2720 Building Web Applications HTML Forms. Introduction  HTML forms are used to collect user input.  The collected input is typically sent to a.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit G Using Forms to Control Input.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
ITCS373: Internet Technology Lecture 5: More HTML.
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.
FORMS. Forms are used to receive information from the web surfer, such as: their name, address, credit card, etc. Form fields are objects that allow.
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.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
Starting BBEdit or Notepad and Opening the HTML File Start BBEdit or Notepad Select Open from the File Menu Open survey1.htm from the Public Folder.
©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.
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.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
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.
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.
HTML Tables Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). td stands.
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.
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Objectives Design a form Create a form Create text fields
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 5 Introduction to XHTML: Part 2
Creating Forms on a Web Page
The Internet 10/27/11 XHTML Forms
Presentation transcript:

Academic Year, Spring Semester Bilkent University - Faculty of Art, Design and Architecture Department of Communication and Design CS 153 Introduction to Computing I Lesson 8

Review of Last Week Open notepad or TryIt. Open notepad or TryIt. Create a frameset that has Create a frameset that has First column 300 pixels wide. Address First column 300 pixels wide. Address Second column *. Address Second column *. Address

</frameset>

Review of Last Week Open notepad or TryIt. Open notepad or TryIt. Create a frameset that has Create a frameset that has First row 250 pixels long. Address First row 250 pixels long. Address Second row *. Address Second row *. Address

</frameset>

Review of Last Week Open notepad or TryIt. Open notepad or TryIt. Create a frameset that has Create a frameset that has First Column 250 pixels wide. Address First Column 250 pixels wide. Address Second Column 250 pixels wide. Address Second Column 250 pixels wide. Address Third Column is * wide. This column has 2 rows: Third Column is * wide. This column has 2 rows: First row is 250 pixels long. Address: First row is 250 pixels long. Address: Second row is * pixels long. Address: Second row is * pixels long. Address:

</frameset></frameset>

Forms Forms allows you to submit data taken from user. Forms allows you to submit data taken from user. The destination that you submit your data would be CGI (Common Gateway Interface) programs that are at the Web, or . The destination that you submit your data would be CGI (Common Gateway Interface) programs that are at the Web, or . In order to use option, client’s program should be setted-up correctly. In order to use option, client’s program should be setted-up correctly.

Forms A form should be inside tag. A form should be inside tag....</form> Parameters: Parameters: ACTION, Specifies the URL of the application that will process the form.(required) ACTION, Specifies the URL of the application that will process the form.(required) METHOD, Specifies the parameter-passing style, either get or post.(required) METHOD, Specifies the parameter-passing style, either get or post.(required) ENCTYPE, Encoding Type Specifies how the form element values will be encoded either ENCTYPE, Encoding Type Specifies how the form element values will be encoded either “application/x-www-form-urlencoded” or “application/x-www-form-urlencoded” or “multipart/form-data”. “multipart/form-data”....</FORM>

INPUT Tag Input has several different form elements controlled by type attribute. Input has several different form elements controlled by type attribute.

Checkbox data to display data to display With Checkbox and RadioButton you can group them in order to have a logical selection. With Checkbox and RadioButton you can group them in order to have a logical selection. Checkbox, Creates checkbox input element. Checkbox, Creates checkbox input element. Checked, Marks the element as initially checked. Checked, Marks the element as initially checked. Name, Name of the parameter.(required) Name, Name of the parameter.(required) Value, Value of the parameter.(required) Value, Value of the parameter.(required) Extra Mozerella Cheese Extra Mozerella Cheese

Radio Button Radio, Creates a radio button input element.(Single selection in a group is possible) Radio, Creates a radio button input element.(Single selection in a group is possible) Checked, Mark the element as initially selected. Checked, Mark the element as initially selected. Name, Name of the parameter.(required) Name, Name of the parameter.(required) Value, Value of the parameter.(required) Value, Value of the parameter.(required) Big Coke Big Coke Medium Coke Medium Coke Small Coke Small Coke

File Allows you to pick a file from your disk Allows you to pick a file from your disk File, Creates a file selection element. File, Creates a file selection element. Maxlength, Specifies the maximum number of characters to accept. Maxlength, Specifies the maximum number of characters to accept. Name, Name of the parameter.(required) Name, Name of the parameter.(required) Size, Number of characters to display. Size, Number of characters to display.

Hidden Field Hidden, Creates hidden element.(Names the form) Hidden, Creates hidden element.(Names the form) Maxlength, Specifies the maximum number of characters to accept. Maxlength, Specifies the maximum number of characters to accept. Name, Name of the parameter.(required) Name, Name of the parameter.(required) Size, Number of character to display. Size, Number of character to display. Value, Specifies the value of this element. Value, Specifies the value of this element.

Image Image, Create an image input element. (Works also as a submit button; Sends x,y coordinate of the clicked point.) Image, Create an image input element. (Works also as a submit button; Sends x,y coordinate of the clicked point.) Align, Align the image to either the top, middle, or bootom of the form. Align, Align the image to either the top, middle, or bootom of the form. Name, Name of the parameter.(required) Name, Name of the parameter.(required) Src, URL of the image.(required) Src, URL of the image.(required)

Reset Button Reset button clears the form Reset button clears the form Reset, Creates reset button. Reset, Creates reset button. Value, Alternate label for reset button. Value, Alternate label for reset button.

Submit button Sends the entered information Sends the entered information Submit, Creates submit button. Submit, Creates submit button. Name, Nameof the parameter.(required) Name, Nameof the parameter.(required) Value, Alternate label for the submit button. Value, Alternate label for the submit button.

Text field Text, Creates text input element. Text, Creates text input element. Maxlength, Specifies maximum number of character to accept. Maxlength, Specifies maximum number of character to accept. Name, Name of the parameter.(required) Name, Name of the parameter.(required) Size, Number of characters to display. Size, Number of characters to display. Value, Initial value for the element. Value, Initial value for the element.

Textarea tag the information here will be displayed as initial/default information. the information here will be displayed as initial/default information. Used to define multiline text area. Cols, Number of column to display Cols, Number of column to display Rows, Number of row to display Rows, Number of row to display Name, Defines the name for text area.(required) Name, Defines the name for text area.(required) Wrap, The values are OFF, VIRTUAL, PHYSICAL Wrap, The values are OFF, VIRTUAL, PHYSICAL OFF, No word wrapping OFF, No word wrapping VIRTUAL, Just display wrapping but don't send it. VIRTUAL, Just display wrapping but don't send it. PHYSICAL, Display and send the word wrapping. PHYSICAL, Display and send the word wrapping.

Select Tag Define a multiple-choice menu or scrolling list. Define a multiple-choice menu or scrolling list. Multiple, If appears, then user can select more than 1 option. Multiple, If appears, then user can select more than 1 option. Name, Defines name for the selected option.(required) Name, Defines name for the selected option.(required) Size, number of items to display in pull-down menu. If value is 1 then it changes into pull-down menu, If the number is more than 1 then it changes into scrolling list. Size, number of items to display in pull-down menu. If value is 1 then it changes into pull-down menu, If the number is more than 1 then it changes into scrolling list.

Option Tag Defines options in SELECT tag. Defines options in SELECT tag. Selected, Makes the item initially selected. Selected, Makes the item initially selected. Value, Send this value(instead of displayed value). Value, Send this value(instead of displayed value).

Select Example No Car Mazda Mercedes Renault Subaru Opel Honda Suzuki Fiat Ford No Car Mazda Mercedes Renault Subaru Opel Honda Suzuki Fiat Ford

Project %25 A simple shopping site. A simple shopping site. You will need a image map program. (for example mapedit, or any other you may find at the internet.) install it and learn it. You will need a image map program. (for example mapedit, or any other you may find at the internet.) install it and learn it. 3 types of pages: 3 types of pages: Frames page Frames page Top page Top page Products page Products page

Homework Frames page Frames page 2 rows: 100, and rest of the space 2 rows: 100, and rest of the space With no spacing between frames With no spacing between frames With no frame borders With no frame borders Frame names Frame names top: top.html top: top.html mainFrame: cd.html mainFrame: cd.html

Homework top.html: top.html: Has only an image with image map. (title.gif) Has only an image with image map. (title.gif) 3 rectangles at CD, DVD and FLOPPY pointing to cd.html, dvd.html, floppy.html will open at bottom frame. 3 rectangles at CD, DVD and FLOPPY pointing to cd.html, dvd.html, floppy.html will open at bottom frame.

Homework Product pages Product pages All has the same structure. All has the same structure. cd.html dvd.html floppy.html cd.html dvd.html floppy.html It has a form It has a form method=post ENCTYPE="application/x- www-form-urlencoded" method=post ENCTYPE="application/x- www-form-urlencoded" A big table that has 2 columns, and same number of rows that products have A big table that has 2 columns, and same number of rows that products have Left cell has the product image Left cell has the product image Right cell has Right cell has a product name in bold followed by short description and a product name in bold followed by short description and details (in a new line) and details (in a new line) and another 2x2 table that shows another 2x2 table that shows the price and total price including VAT the price and total price including VAT A text box that allows only 3 characters to be entered, with a name equals to the product name. A text box that allows only 3 characters to be entered, with a name equals to the product name. Submit button just after the big table. Submit button just after the big table.

Homework Sample product page, the tables are dashed in order to allow you to see them. Normally there are no table borders.

Homework

Homework

Homework When we click on “Satın Al” an will be sent to with the data. Test it with your own .

FAQ The Turkish text on your web page is not looking correct? The Turkish text on your web page is not looking correct? Try adding Try adding to... to... All images are available at All images are available at

EOL