Server Side Scripting Key Points Meaning of ? In URL Arguments/inputs: name/value pairs, & separates Create/abuse input in the URL Input validation (server.

Slides:



Advertisements
Similar presentations
Adding Dynamic Content to your Web Site
Advertisements

1 Topic 6 Processing Form Input. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction Form.
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
HTML Markup language - controls appearance and content of a document Javascripts Various HTML tags.
Capturing user input: Using HTML FORMs User input Up till now, our HTML documents have all been directed at outputting information to the user However,
JavaScript Forms Form Validation Cookies CGI Programs.
Servlets and a little bit of Web Services Russell Beale.
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.
Forms Describe common uses of forms on web pages
Apache Tomcat Server – installation & use Server-side language-- use Java Server Pages Contrast Client-side languages HTML Forms Servers & Server-side.
Apache Tomcat Server Typical html Request/Response cycle
1 The World Wide Web Architectural Overview Static Web Documents Dynamic Web Documents HTTP – The HyperText Transfer Protocol Performance Enhancements.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Contrast with JavaScript HTML Formsto invoke Java Server Pages Structure of Forms Query strings Java Server Pages Sent From Browser To Serverfor JSP.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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.
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
1 Forms for the Web Tom Muck
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Client-Side programming with JavaScript 3
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
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.
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Validation Controls. Validation Server Controls These are a special type of Web server control. They significantly reduce some of the work involved in.
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
Server-side Scripting Powering the webs favourite services.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
JavaScript – Quiz #9 Lecture Code:
Using Client-Side Scripts to Enhance Web Applications 1.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
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.
SQL INJECTIONS Presented By: Eloy Viteri. What is SQL Injection An SQL injection attack is executed when a web page allows users to enter text into a.
JSON and A Comparison of Scripts. JSON: JavaScript Object Notation Based on a subset of the JavaScript Programming Language provides a standardized data.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
 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.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
The basics of knowing the difference CLIENT VS. SERVER.
Radio Buttons. Input/Form/Radio Group Use the dialog to enter label and values for the radio buttons.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
Javascript Javascript The JavaScript Programming Language – Scripting Languages Executed by an interpreter contained within.
How to Write Web Forms By Mimi Opkins.
Introduction to CGI and ajax
Validation and Building Small Apps
Introduction to CGI and ajax
Web Browser server client 3-Tier Architecture Apache web server PHP
Session Tracking Techniques
PHP PART 2.
PHP Forms and Databases.
Client-Server Model: Requesting a Web Page
Hypertext Preprocessor
Presentation transcript:

Server Side Scripting Key Points Meaning of ? In URL Arguments/inputs: name/value pairs, & separates Create/abuse input in the URL Input validation (server or client) Avoiding client side validation Entire GET will be in server logs

var iter = 0; while(iter < 1000) { document.write("G O N A V Y ! "); iter = iter + 1; } var iter = 0; while(iter < 1000) { document.write("G O N A V Y ! "); iter = iter + 1; } function (N) { var out = ""; var iter = 0; while(iter < N) { out = out + "G O N A V Y ! "; iter = iter + 1; } return out; } G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y ! G O N A V Y server finds server sends browser executes and renders server finds and executes server sends browser renders Client-Side Scripting Server-Side Scripting

Forms Form Input Buttons

°F (browser back-button to return) function(fahrenheit) { var f = fahrenheit; var c = 5/9*(f - 32); return c + ' °C'; } f2c.html - on client f2c.jsx - on server Tells browser to construct a URL that will be sent