1-Oct-15 HTML Forms Form, Button, Checkbox, Text box, Combo box, List & Radio Button.

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

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.
24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
1 Introduction to HTML II อุทัย เซี่ยงเจ็น สำนักวิชาเทคโนโลยีสารสนเทศ และการสื่อสาร มหาวิทยาลัยนเรศวร พะเยา.
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.
SE-2840 Dr. Mark L. Hornick 1 HTML input elements and forms.
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.
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.
Form Basics CS Web Data  Most interesting web pages revolve around data  examples: Google, IMDB, Digg, Facebook, YouTube, Rotten Tomatoes  can.
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.
16-Jul-15 HTML. 2 What is HTML? HTML stands for Hypertext Markup Language An HTML file is a text file containing markup tags The markup tags tell the.
Forms. Form An HTML form is a section of a document containing normal content, special elements called controls (checkboxes, radio buttons, buttons, etc.),
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
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.
HTML Forms What is a form.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
CSE 382/ETE 334 Internet and Web Technology Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
DAT602 Database Application Development Lecture 14 HTML.
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.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Suzanne J. Sultan Javascript Lecture 2. Suzanne J. Sultan function What is a function> Types of functions:  Function with no parameters  Function with.
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.
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.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
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.
HTML : Forms, Frames Instructor: Mr. Ahmed Al Astal ITGD4104 Department Requirement for senior student University of Palestine Faculty of IT.
HTML FORMS GET/POST METHODS. HTML FORMS HTML Forms HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes,
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.
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.
Introduction To HTML Form Inputs Written By George Gimian.
Chapter 19 Creating and Processing HTML Forms. How HTML Forms Transmit Data name1=value1&name2=value2...&nameN =valueN GET or POST GET, an HTTP GET request,
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
JavaScript JavaScript Introduction. Q. What is JavaScript? Ans. JavaScript was designed to add interactivity to HTML pages. JavaScript is a scripting.
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.
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 Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
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.
1 Committed to Shaping the Next Generation of IT Experts. 03: Links and Forms HTML.
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.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
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.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
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.
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
How to Write Web Forms By Mimi Opkins.
FORMS Explained By: Sarbjit Kaur.
HTML/XHTML Forms 18-Sep-18.
Introducing Forms.
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.
Creating Forms on a Web Page
HTML Forms 18-Apr-19.
© Hugh McCabe 2000 Web Authoring Lecture 8
Presentation transcript:

1-Oct-15 HTML Forms Form, Button, Checkbox, Text box, Combo box, List & Radio Button

2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the purpose is to ask the user for information The information is then sent back to the server A form is an area that can contain form elements The syntax is:...form elements... Form elements include: buttons, checkboxes, text fields, radio buttons, drop-down menus, etc Other kinds of HTML tags can be mixed in with the form elements A form usually contains a Submit button to send the information in he form elements to the server The form’s parameters tell JavaScript how to send the information to the server (there are two different ways it could be sent) Forms can be used for other things, such as a GUI for simple programs

3 What are forms? (Arabic) هو مجرد نوع آخر من علامة HTML وتستخدم نماذج HTML لإنشاء (بدائية) واجهات على صفحات ويب عادة ما يكون الغرض من ذلك هو أن يطلب من المستخدم للحصول على معلومات ثم يتم إرسال المعلومات مرة أخرى إلى الخادم وهناك شكل هو أحد المجالات التي يمكن أن تحتوي على عناصر النموذج بناء الجملة هو:... عناصر النموذج... عناصر النموذج ما يلي: الأزرار، مربعات الاختيار، حقول النص، أزرار الراديو، والقوائم المنسدلة، الخ ويمكن خلط أنواع أخرى من علامات HTML مع العناصر في شكل نموذج عادة ما تحتوي على زر إرسال لإرسال المعلومات في انه يشكل العناصر إلى الملقم معلمات النموذج اقول جافا سكريبت كيفية إرسال المعلومات إلى الخادم (هناك طريقتين مختلفتين يمكنإرسالها) ويمكن استخدام نماذج لأمور أخرى، مثل واجهة المستخدم الرسومية لبرامج بسيطة

4 Forms and JavaScript The JavaScript language can be used to make pages that “do something” You can use JavaScript to write complete programs, but... Usually you just use snippets of JavaScript here and there throughout your Web page JavaScript code snippets can be attached to various form elements For example, you might want to check that a zipcode field contains a 5-digit integer before you send that information to the server Microsoft sometimes calls JavaScript “active scripting” HTML forms can be used without JavaScript, and JavaScript can be used without HTML forms, but they work well together JavaScript for HTML is covered in a separate lecture

5 Forms and JavaScript (Arabic) ويمكن استخدام لغة جافا سكريبت لجعل صفحات أن "القيام بشيء ما" يمكنك استخدام جافا سكريبت لكتابة برامج كاملة، ولكن... وعادة ما تستخدم فقط قصاصات من جافا سكريبت هنا وهناك في جميع أنحاء صفحة ويب يمكن تركيبها جافا سكريبت قصاصات رمز لمختلف عناصر النموذج على سبيل المثال، قد ترغب في التحقق من أن حقل الرمز البريدي يحتوي على عدد صحيح 5 أرقام قبل إرسال هذه المعلومات إلى الخادم مايكروسوفت تدعو أحيانا جافا سكريبت "البرمجة النشطة" ويمكن استخدام نماذج HTML بدون جافا سكريبت، ويمكن استخدامها بدون جافا سكريبت نماذج HTML، لكنها تعمل معا بشكل جيد وتغطي جافا سكريبت لHTML في محاضرة منفصلة

6 The tag The... tag encloses form elements (and probably other HTML as well) The arguments to form tell what to do with the user input action=" url"(required) Specifies where to send the data when the Submit button is clicked method="get" (default) Form data is sent as a URL with ?form_data info appended to the end Can be used only if data is all ASCII and not more than 100 characters method="post" Form data is sent in the body of the URL request Cannot be bookmarked by most browsers target=" target " Tells where to open the page sent as a result of the request target= _blank means open in a new window target= _top means use the same window

7 The tag (Arabic) و... العلامة يرفق عناصر النموذج (وربما HTML أخرى كذلك) الحجج لتشكيل معرفة ما يجب القيام به مع إدخال المستخدم عمل = "URL" (مطلوب) حيث تحدد لإرسال البيانات عندما يتم النقر على زر البحث أسلوب = "الحصول على" (الافتراضي) يتم إرسال بيانات النموذج باعتباره URL مع؟ form_data معلومات إلحاق نهاية يمكن استخدامها فقط إذا كانت البيانات هي كل ASCII، وليس أكثر من 100 حرف أسلوب = "آخر" يتم إرسال بيانات النموذج في نص طلب URL لا يمكن أن تكون مرجعية من قبل معظم برامج التصفح الهدف = "الهدف" يروي فيها لفتح صفحة ارسال نتيجة للطلب الهدف = _blank يعني فتح في نافذة جديدة الهدف = _top يعني استخدام الإطار نفسه

8 The tag Most, but not all, form elements use the input tag, with a type="..." argument to tell which kind of element it is type can be text, checkbox, radio, password, hidden, submit, reset, button, file, or image Other common input tag arguments include: name : the name of the element value : the “value” of the element; used in different ways for different values of type readonly : the value cannot be changed disabled : the user can’t do anything with this element Other arguments are defined for the input tag but have meaning only for certain values of type

9 The tag (Arabic) معظم، ولكن ليس كل شيء، عناصر النموذج استخدام العلامة الإدخال، مع نوع = "..." حجة لمعرفة أينوع من العنصر هو نوع يمكن أن يكون النص، مربع، والإذاعة، وكلمة السر، خفية، وتقديم، إعادة، زر أو ملف أو صورة سمة أخرى مساهمة مشتركة الحجج ما يلي: الاسم: اسم العنصر قيمة: "قيمة" للعنصر، وتستخدم بطرق مختلفة لقيم مختلفة من نوع للقراءة فقط: لا يمكن تغيير قيمة تعطيل: يمكن للمستخدم أن تفعل أي شيء مع هذا العنصر وتعرف غيرها من الحجج للعلامة الإدخال ولكن لها معنى فقط لقيم معينة من نوع

10 Text input A text field: A multi-line text field Hello A password field: Note that two of these use the input tag, but one uses textarea

11 Buttons A submit button: A reset button: A plain button: submit : send data reset : restore all form elements to their initial state button : take some action as specified by JavaScript Note that the type is input, not “button”

12 Checkboxes A checkbox: type : "checkbox" name : used to reference this form element from JavaScript value : value to be returned when element is checked Note that there is no text associated with the checkbox— you have to supply text in the surrounding HTML

13 Radio buttons Radio buttons: male female If two or more radio buttons have the same name, the user can only select one of them at a time This is how you make a radio button “group” If you ask for the value of that name, you will get the value specified for the selected radio button As with checkboxes, radio buttons do not contain any text

14 Drop-down menu or list A menu or list: red green blue Additional arguments: size : the number of items visible in the list (default is "1" ) multiple : if set to "true", any number of items may be selected (default is "false" )

15 Hidden fields <-- right there, don't you see it? What good is this? All input fields are sent back to the server, including hidden fields This is a way to include information that the user doesn’t need to see (or that you don’t want her to see) The value of a hidden field can be set programmatically (by JavaScript) before the form is submitted

16 Hidden fields (Arabic) <-- right there, don't you see it? ما هو جيد هذا؟ وترسل جميع حقول الإدخال مرة أخرى إلى الخادم، بما في ذلك الحقول المخفية هذا هو وسيلة لتشمل المعلومات التي لا يحتاج المستخدم لرؤية (أو التي لا تريد لها أن ترى) ويمكن تعيين قيمة حقل مخفي برمجيا (عن طريق جافا سكريبت) قبل أن يقدم على شكل

17 A complete example Get Identity Who are you? Name: Gender: Male Female

Combo box / Dropdown box 18 one two three Output :-

Scrollable Select Option 19 one two three four

20 Multi Selection box in an HTML one two three four

21 Combo box in an HTML one two three four