表單 (Form)

Slides:



Advertisements
Similar presentations
Tutorial 6 Creating a Web Form
Advertisements

Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
Supplement Creating Forms. Objectives Show how forms are used How to create the Form element HTML elements used for creating input fields.
CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
CSC 2720 Building Web Applications PHP File Upload.
HTTP HyperText Transfer Protocol. HTTP Uses TCP as its underlying transport protocol Uses port 80 Stateless protocol (i.e. HTTP Server maintains no information.
Skills: none Concepts: protocol, hypertext transfer protocol, standard This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike.
Web Database Programming Input Validation. User Input on the Web Web browser built-in mechanisms –HTML Forms HTTP POST method –Hyperlinks HTTP GET method.
CS320 Web and Internet Programming Handling HTTP Requests Chengyu Sun California State University, Los Angeles.
CSE 190: Internet Commerce Lecture 4: Web Servers.
Form Basics CS Web Data  Most interesting web pages revolve around data  examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes  can.
The Information School of the University of Washington Oct university of washington1 Hypertext Markup Language INFO/CSE 100, Fall 2006 Fluency.
1 Web Search Interfaces. 2 Web Search Interface Web search engines of course need a web-based interface. Search page must accept a query string and submit.
CSC 2720 Building Web Applications Servlet – Getting and Setting HTTP Headers.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
HTML 5 Tutorial Chapter 9 Form Attributes. New Form Attributes HTML5 has several new elements and attributes for forms. New form attributes : autocomplete.
HTML Forms – Interactive HTML – Web 2.0. HTML – New types for input – Degrades gracefully for browsers that do not support the html 5 input types
Web technologies and programming cse hypermedia and multimedia technology Fanis Tsandilas April 3, 2007.
CIS 1310 – HTML & CSS 9 Forms. CIS 1310 – HTML & CSS Learning Outcomes  Describe Common Uses of Forms on Web Pages  Create Forms on Web Pages  Associate.
HTML Forms What is a form.
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
Presenter, Sai Krishna.  Introduction to session management  Ways of doing session management  Creating and Handling cookies  Problems with User sessions.
COMP3016 Web Technologies Introduction and Discussion What is the Web?
HTTP – HyperText Transfer Protocol
Basic Network Services IMT 546 – Lab 4 December 4, 2004 Agueda Sánchez Shannon Layden Peyman Tajbakhsh.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
CHAPTER 2 HTML & HTML5 II อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
Suzanne J. Sultan Javascript Lecture 2. Suzanne J. Sultan function What is a function> Types of functions:  Function with no parameters  Function with.
CS320 Web and Internet Programming Handling HTTP Requests Chengyu Sun California State University, Los Angeles.
Dyalog’09. Overview of MildServer Morten Kromberg Dyalog’09 – Princeton, NJ.
HTML Forms.
HTML - Forms By Joaquin Vila, Ph.D.. Form Tag The FORM tag specifies a fill-out form within an HTML document. More than one fill-out form can be in a.
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.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements  Always name.
HTML : Forms, Frames Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
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.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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.
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.
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
HTML Forms Forms, Controls, Fields, Inputs, Submission, Validation SoftUni Team Technical Trainers Software University
HTTP How the Internet servers and clients communicate.
HTML5 Forms Forms are used to capture user input …
HTML Forms.
Computer security: certification Frans Kaashoek Spring 2007.
1 10/19/05CS360 Windows Programming ASP.NET. 2 10/19/05CS360 Windows Programming ASP.NET  ASP.NET works on top of the HTTP protocol  Takes advantage.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
PHP Security Ryan Dunn Jason Pack. Outline PHP Overview PHP Overview Common Security Issues Common Security Issues Advanced Security Issues Advanced Security.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
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.
表單 (Form). … Ex. … method  method="get"  URL:  HTTP message entity: none  不可超過 256 個字元  method="post"
DEV336. demo HTTP Packet Trace GET / HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US User-Agent: Mozilla/5.0 (compatible;
Session I How to Work with Forms Chapter 11 - How to Work with Formswww.profburnett.com.
Week-11 (Lecture-1) Introduction to HTML programming: A web based markup language for web. Ex.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
Informatics Computer School CS114 Web Publishing HTML Lesson 4.
Fiddler and Your Website Robert Boedigheimer. About Me Web developer since 1995 Columnist for aspalliance.com Pluralsight Author 3 rd Degree Black Belt,
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
>> Introduction to HTML: Forms
HTML CS422 Dick Steflik.
JavaScript Forms Adding User Input.
Validation and Building Small Apps
Web Systems Development (CSC-215)
JavaScript Forms Adding User Input.
HTML5 - 2 Forms, Frames, Graphics.
Presentation transcript:

表單 (Form)

… Ex. …

method  method="get"  URL:  HTTP message entity: none  不可超過 256 個字元  method="post"  URL:  HTTP message entity: uid=ycc&pwd=mypwd

Form Example text password textarea checkbox radio select file submit, reset, button

Ex. User Name:

Ex. Password:

… … ex. Comments:

ex. Members: Yahoo! Google Youtube

ex. Payment: Visa Master JCB

… … Ex. Year:

… … Ex. Web Technologies: HTML XHTML CSS JavaScript ASP PHP

… A B AB O JavaScript VBScript PHP ASP.NET

ex. Upload pdf file: size="…" maxlength="…"

POST /ycchen/www2011/ex/join.php HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Referer: Accept-Language: zh-tw,zh-cn;q=0.5 Content-Type: multipart/form-data; boundary= d934db UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB5;.NET CLR ;.NET CLR ; InfoPath.1) Host: Content-Length: Connection: Keep-Alive Cache-Control: no-cache d934db Content-Disposition: form-data; name="uid" Your id d934db Content-Disposition: form-data; name="pwd" mypwd d934db Content-Disposition: form-data; name="google" google

d934db Content-Disposition: form-data; name="wts" HTML d934db Content-Disposition: form-data; name="wts" XHTML d934db Content-Disposition: form-data; name="pdf"; filename="C:\paper\IEEEMembershipApp.pdf" Content-Type: application/pdf %PDF-1.3 % obj << /Linearized 1 /O 37 /H [ ] /L /E /N 3 /T

ex.

ex.

… ex. Reset

… 填入個人資料 姓名 : 電子信箱 : 電話 : ex7-4.html

Male Female Male Female

What's New in HTML5 Forms  Elements ,,   Input Types  color, date, datetime, datetime-local, , month, number, range, search, tel, time, url, week colordatedatetime month numberrangetime   Input Attributes  autocomplete, autofocus, form, formaction, formenctype, formmethod, formnovalidate, formtarget, height, width, list, min, max, multiple, pattern(regexp), placeholder, required, step autocompleteautofocusformformaction formmethodlistmin, maxpattern(regexp)placeholderrequiredstep 