CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES.

Slides:



Advertisements
Similar presentations
Web Database Programming Input Validation. User Input on the Web Web browser built-in mechanisms –HTML Forms HTTP POST method –Hyperlinks HTTP GET method.
Advertisements

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.
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Using Entities & Creating Forms Jill R. Sommer Institute for Applied Linguistics Kent State University.
1 CS101 Introduction to Computing Lecture 12 Interactive Forms (Web Development Lecture 4)
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
Forms. Form An HTML form is a section of a document containing normal content, special elements called controls (checkboxes, radio buttons, buttons, etc.),
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
CST JavaScript Validating Form Data with JavaScript.
Chapter 9 Working with Forms. Principles of Web Design 2nd Ed. Chapter 9 2 Principles of Web Design Chapter 9 Objectives Understand how forms work Understand.
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.
MS3304: Week 4 PHP & HTML Forms. Overview HTML Forms elements refresher Sending data to a script via an HTML form –The post vs. get methods –Name value.
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.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
HTML Forms What is a form.
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.
Kevin Murphy Creating Forms Masters Project CS 490.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT
CSC318 – WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Forms. Forms Forms are used for e-commerce, online purchases, surveys, registrations, etc. Website using forms usually collect information and must use.
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.
 2003 Prentice Hall, Inc. All rights reserved. CHAPTER 3 JavaScript 1.
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.
HTML Forms.
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.
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.
HTML and FORMS.  A form is an area that can contain form elements.  Form elements are elements that allow the user to enter information (like text fields,
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.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer & Mathematical Sciences, Universiti Teknologi.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
Intro to Forms  HTML forms are used to gather information from end-users.  A form can contain elements like radio- buttons, text fields, checkboxes,
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 9 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
HTML5 Forms Forms are used to capture user input …
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 Form. HTML forms are used to collect user input. The element defines an HTML form: Form elements are different types of input elements, checkboxes,
Week 10: HTML Forms HNDIT11062 – Web Development.
HTML FORMS Basharat Mahmood, Department of Computer Science,CIIT,Islamabad,Pakistan. 1.
CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
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 APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
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.
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.
Validation and Building Small Apps
Web Development & Design Foundations with H T M L 5
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT
CSC318 – WEB APPLICATION DEVELOPMENT
Presentation transcript:

CSC317 – INTERNET PROGRAMMING CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: MUHD EIZAN SHAFIQ BIN ABD AZIZ FACULTY of COMPUTER and MATHEMATICAL SCIENCES

FTMSK UiTM Pahang  Page 2 Outline  Introduction to Form Processing  Adding HTML Input Fields  Passing a form as a parameter Form Processing

FTMSK UiTM Pahang  Page 3 Form Processing  HTML form is used to capture user inputs, before sending the inputs to the database, or, display the outputs to user  HTML form may contains: -Text field -Dropdown list/combo box -Text area -Checkbox -Radio button -Button Introduction to Form Processing

FTMSK UiTM Pahang  Page 4 Form Processing  It (may|should) has: -Server-side scripting: ASP, PHP, CFM, JSP, etc -Client-side scripting: Javascript, AJAX, etc  Speaking about form processing, it has: Introduction to Form Processing Input ProcessOutput

FTMSK UiTM Pahang  Page 5 Form Processing  How to create HTML form? Introduction to Form Processing HTML Form No. Pelajar: Nama:

FTMSK UiTM Pahang  Page 6 Form Processing  HTML form attributes  Therefore, a complete HTML form look like this (please refer to the next slide) Introduction to Form Processing TagDescription name Defines unique name for the form method HTTP method for sending data to the action URL. The value either post or get action A URL that defines where to send the data when the submit button is clicked

FTMSK UiTM Pahang  Page 7 Form Processing HTML Form No. Pelajar: Nama:

FTMSK UiTM Pahang  Page 8 Form Processing  Adding text field in HTML form Adding HTML Input Fields HTML Form Nama: Password:

FTMSK UiTM Pahang  Page 9 Form Processing  Adding text area in HTML form Adding HTML Input Fields HTML Form Address:

FTMSK UiTM Pahang  Page 10 Form Processing  Adding dropdown list in HTML form Adding HTML Input Fields HTML Form State: Pahang Kedah

FTMSK UiTM Pahang  Page 11 Form Processing  Adding checkboxes in HTML form (for multiple choices) Adding HTML Input Fields HTML Form Interest Area(s): Chemistry Biology Physics

FTMSK UiTM Pahang  Page 12 Form Processing  Adding radio button in HTML form (single choice) Adding HTML Input Fields HTML Form Gender: Female Male

FTMSK UiTM Pahang  Page 13 Form Processing  An HTML form with common elements and buttons Adding HTML Input Fields HTML Form Nama: Password:

FTMSK UiTM Pahang  Page 14 Form Processing  An HTML form with common elements and buttons -3 types of buttons -Submit : to allow data in the form to be submitted into the database or to another page -Reset : to clear all data in the form/to reset the form -Button : user-defined action. Programmer writes a code to trigger specific action once the button is clicked Adding HTML Input Fields

FTMSK UiTM Pahang  Page 15 Form Processing  How to process inputs from HTML form? -Make sure you have created a complete HTML form (plus with input fields and a button) -We have two ways to process the inputs: -Client-side Scripting -The best example is using JavaScript (which you will learn in the next lesson) -JavaScript able to do input validation, display the outputs, process the inputs like doing calculation, and so on -BUT, JavaScript cannot send the inputs to the database! -Server-side Scripting -You will learn to process the inputs using Active Server Page (ASP) -It is able to do what JavaScript can do -It can send the inputs to the database! Passing a form as a parameter

FTMSK UiTM Pahang  Page 16 Form Processing  How to process inputs from HTML form? -You need to complete JavaScript lesson first before you can start to code how to process the inputs -BUT, I suggest you to learn by yourself first, we have sample in the text book and on the Internet -Some examples: -Example 1Example 1 -Example 2Example 2 Passing a form as a parameter

FTMSK UiTM Pahang  Page 17 Question?

FTMSK UiTM Pahang  Page 18  Knuckles (2001). Introduction to Interactive Programming on the Internet using HTML & Javascript. John Wiley & Sons, Inc.    Bibliography (Book) Bibliography (Websites)