Web Systems Development (CSC-215)

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

PHP and CSS to control web apps styles. CSS is used to style today’s web applications.
Cookies, Sessions. Server Side Includes You can insert the content of one file into another file before the server executes it, with the require() function.
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
What is it? –Large Web sites that support commercial use cannot be written by hand What you’re going to learn –How a Web server and a database can be used.
Servlets and a little bit of Web Services Russell Beale.
Multiple Tiers in Action
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
 A cookie is a piece of text that a Web server can store on a user's hard disk.  Cookie data is simply name-value pairs stored on your hard disk by.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
CSC 2720 Building Web Applications Cookies, URL-Rewriting, Hidden Fields and Session Management.
Server-side Scripting Powering the webs favourite services.
Lecture 14 – Web Security SFDV3011 – Advanced Web Development 1.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
November 13, 2008 Ohio Information Security Forum Attack Surface of Web Applications James Walden Northern Kentucky University
CSE 154 LECTURE 12: COOKIES. Including files: include include("filename"); PHP include("header.html"); include("shared-code.php"); PHP inserts the entire.
CS453: State in Web Applications (Part 1) State in General Sessions (esp. in PHP) Prof. Tom Horton.
JavaScript – Quiz #9 Lecture Code:
Feedback #2 (under assignments) Lecture Code:
Week seven CIT 354 Internet II. 2 Objectives Database_Driven User Authentication Using Cookies Session Basics Summary Homework and Project 2.
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
Website Development with PHP and MySQL Saving Data.
Chapter 6 Server-side Programming: Java Servlets
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
STATE MANAGEMENT.  Web Applications are based on stateless HTTP protocol which does not retain any information about user requests  The concept of state.
PHP. $_GET / $_POST / $_SESSION PHP uses predefined variables to provide access to important information about the server and requests from a browser.
Web Database Programming Week 7 Session Management & Authentication.
Cookies and Sessions IDIA 618 Fall 2014 Bridget M. Blodgett.
CSCI 6962: Server-side Design and Programming Java Server Faces Scoping and Session Handling.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
1 3 Computing System Fundamentals 3.4 Networked Computer Systems.
CP476 Internet Computing CGI1 Cookie –Cookie is a mechanism for a web server recall info of accessing of a client browser –A cookie is an object sent by.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
HTML 5 Tutorial Chapter 6 Web Storage. Storing Data on The Client HTML5 offers two new objects for storing data on the client: localStorage - stores data.
 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.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
Since you’ll need a place for the user to enter a search query. Every form must have these basic components: – The submission type defined with the method.
How Web Database Architectures Work CPS181s April 8, 2003.
October 7 th, 2010 SDU Webship. What did we learn last week? jQuery makes it really easy to select elements and do stuff with them. jQuery can process.
1 CS428 Web Engineering Lecture 22 Building Dynamic Web pages (PHP - V)
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.
Web Programming 3(3-0-6) Introduction to interactive, event-driven and dynamic web development; web programming with freeware and commercial tools;
PHP: Further Skills 02 By Trevor Adams. Topics covered Persistence What is it? Why do we need it? Basic Persistence Hidden form fields Query strings Cookies.
SlideSet #20: Input Validation and Cross-site Scripting Attacks (XSS) SY306 Web and Databases for Cyber Operations.
Group 18: Chris Hood Brett Poche
Tonga Institute of Higher Education IT 141: Information Systems
Managing State Chapter 13.
Section 6.3 Server-side Scripting
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Web Software Model CS 4640 Programming Languages for Web Applications
Passing variables between pages
PHP / MySQL Introduction
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
What is Cookie? Cookie is small information stored in text file on user’s hard drive by web server. This information is later used by web browser to retrieve.
Web Systems Development (CSC-215)
Web Browser server client 3-Tier Architecture Apache web server PHP
Tonga Institute of Higher Education IT 141: Information Systems
Web Systems Development (CSC-215)
Chapter 2 Interacting with the Customer
PHP and Forms.
Tonga Institute of Higher Education IT 141: Information Systems
CSc 337 Lecture 27: Cookies.
Back end Development CS Programming Languages for Web Applications
PHP Forms and Databases.
Cross-Site Scripting Issues and Defenses Ed Skoudis Predictive Systems
Client-Server Model: Requesting a Web Page
Back end Development CS Programming Languages for Web Applications
CSc 337 Lecture 25: Cookies.
Presentation transcript:

Web Systems Development (CSC-215) Lecture 11: Query Strings Wednesday 14th March 2018

Saving State Most of the scripts we have done up to now have had significance for single instances After the scripts are run, removed from web server's memory

Saving State Data needs to be saved in between browser request, when, for example, You need to keep track of items in a shopping cart To keep track of a user posting comments in forums Not just logged in users, state for returning users ...

Need to preserve state of user interaction

Saving State Query strings Cookies HTTP authentication Sessions

Query Strings Quick convenient way to pass small amounts of data between browser requests Example: keywords entered in a search function Only use in situations where sending incorrect data won't compromise security

Building Query Strings A query string is simply a string of characters stored in a URL Manually create a URL containing a query string in PHP script, then include the URL as a link within the displayed page or in an email, for example PHP even provides some built - in functions to make the process easier

Query strings only allow specific characters, so use urlencode() to include exceptions

Accessing Data

Accessing Data

example

Pagination Uses query strings to create previous and next page links

Lecture content adapted from chapter 13 of Learning PHP, MySQL, JavaScript, CSS & HTML5 & chapter 10 of Beginning PHP 5.3