PHP and Forms.

Slides:



Advertisements
Similar presentations
Building Database Relationships
Advertisements

PHP syntax basics. Personal Home Page This is a Hypertext processor It works on the server side It demands a Web-server to be installed.
4.01 How Web Pages Work.
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.
Introduction to PHP To boldly go where JavaScript has never been…
Layer 7- Application Layer
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Multiple Tiers in Action
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Web Programming Introduction to PHP COM Objectives To understand what PHP is and how a PHP script works with a Web Browser and a Web Server To learn.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
Open Source Software WampServer Presented By Mr. R.Aravindhan.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
17 Web Servers (Apache and IIS)
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Web Administration.
PHP Tutorials 02 Olarik Surinta Management Information System Faculty of Informatics.
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.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Server-side Scripting Powering the webs favourite services.
1 HTML (Set Up Public Folder) Some material on these slides is taken directly from
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
INFO 1300: LOCAL DEVELOPMENT 10/16/2015. Index.html Important Homepage for every project in this course Points will be deducted otherwise.
Website Development with PHP and MySQL Saving Data.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Creating Web Documents: How the Web works Client / Server Protocols Access methods Homework: Complete experiment & report on Discussion Forum.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
PHP “Personal Home Page Hypertext Pre-processor” (a recursive acronym) Allows you to create dynamic web pages and link web pages to a database.
 2008 Pearson Education, Inc. All rights reserved. Chapter 17 Web Servers (Apache and IIS) Internet & World Wide Web How to Program, 5/e.
Web Design and Development. World Wide Web  World Wide Web (WWW or W3), collection of globally distributed text and multimedia documents and files 
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Setting up Dreamweaver to use your local WAMP testing Server
Unit 1 – Web Concepts Instructor: Brent Presley.
Web Server Apache PHP HTTP Request User types URL into browser Address resolved if nec. We use directly Most browsers request.
Web programming Part 1: environment 由 NordriDesign 提供
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.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
PHP – Hypertext Preprocessor.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Web Programming Language
4.01 How Web Pages Work.
Section 6.3 Server-side Scripting
Web Development Web Servers.
Warm Handshake with Websites, Servers and Web Servers:
PHP / MySQL Introduction
Database Driven Websites
17 Web Servers (Apache and IIS)
Chapter 27 WWW and HTTP.
17 Web Servers (Apache and IIS)
PHP Forms and Databases.
4.01 How Web Pages Work.
Web Servers (IIS and Apache)
Your computer is the client
4.01 How Web Pages Work.
Web Application Development Using PHP
XAMPP.
Presentation transcript:

PHP and Forms

Topics How PHP works WAMP and MAMP PHP and Forms POST and Get Practice

How PHP works PHP is typically used in combination with a Web server like Apache. Requests for PHP scripts are received by the Web server Instructions are then handled by the PHP interpreter. The results obtained after execution are returned to the Web server, which takes care of transmitting them to the client browser.

What is WAMP or MAMP? PHP runs on a web server. This means that testing is more time consuming due to upload requirements. WAMP and MAMP represent local servers with Apache, MySQL, and PHP bundled together. WAMP – Windows MAMP - Mac WAMP and MAMP describe a fully functioning local servers used for developing dynamic Internet PHP web sites.

Place MAMP or WAMP on your computer!

MAMP Notes MAMP will NOT work if the MAMP folder is not located in the Applications directory.   By default, Apache runs on Port 8888 and MySQL on Port 8889. It’s best not to change the port, but you can.   By default, PHP and HTML Pages should be stored inside the MAMP "htdocs" folder which is located in the MAMP Application directory /Applications/MAMP. 

WAMP Notes A www directory will be automatically created (usually c:\wamp\www) Create a subdirectory in www and put your PHP files inside. Click on the “localhost” link in the WampSever menu or open your internet browser and go to the URL : http://localhost

Forms HTML forms are used to collect user input. PHP script can easily process user input and performs calculations based on user forms.

POST and GET POST and GET are two HTTP request methods. POST and GET are important to PHP because they are intended to retrieve data. What are the differences? GET is the default. It has limitations because it can only send small amounts of parameter data to the server. GET requests are often cached by default by some browsers. This means that data will be visible in the HTTP request address. It’s not secure.   POST is intended for changing the server state. This is the one we will always use. It’s secure, it carries more data, and is flexible (repeating the query is allowed (and often expected) to have side-effects such as creating two messages instead of one.)

Practice with Lab 9