sitepoint_day3_introducing php

3
Become a better web developer. Home Products Courses Forums Blogs Podcast Articles Reference Marketplace Help You are logged in as: adminloozer x SitePoint Courses > PHP Live > Introducing PHP Back to the dashboard Lesson 3: Introducing PHP Today we set aside our database and return to our focus on the PHP language. Today’s Tasks Watch a video: Welcome to PHP Live Day 3 1. Download today’s code: day3code.zip (8KB) 2. Watch a video: 3. Read an article: PHP Variables, Operators, and Comments A look at some of the fundamental building blocks of statements in PHP programs. 4. Read an article: PHP Arrays An array is a special kind of variable that contains multiple values. If you think of a variable as a box that contains a value, then an array can be thought of as a box with compartments, where each compartment is able to store an individual value. 5. Lessons Week 1 Lesson 1: PHP & MySQL Lesson 2: Your First Database Lesson 3: Introducing PHP Lesson 4: PHP Language Lesson 5: Recorded Q&A Week 2 Lesson 6: Displaying MySQL Content Lesson 7: Adding and Removing Content with PHP Lesson 8: Database Design: Multi-table Queries Lesson 9: Database Design: Complex Relationships Lesson 10: Recorded Q&A Week 3 Lesson 11: Structured PHP Programming Lesson 12: A Content Management System (#1) Lesson 13: A Content Management System (#2) Lesson 14: Sessions and Access Control Lesson 15: Recorded Q&A Back to the dashboard Search this site PHP Live Lesson 3 "Introducing PHP" http://courses.sitepoint.com/php-live/lesson/3 1 sur 3 14/12/2010 14:54

Upload: michel-lecomte

Post on 24-Mar-2016

212 views

Category:

Documents


0 download

DESCRIPTION

Lesson 1: PHP & MySQL Lesson 2: Your First Database Lesson 3: Introducing PHP Lesson 4: PHP Language Lesson 5: Recorded Q&A Week 1 Week 2 Week 3 Watch a video: Watch a video: Welcome to PHP Live Day 3 Read an article: PHP Variables, Operators, and Comments Download today’s code: day3code.zip (8KB) Read an article: PHP Arrays Today we set aside our database and return to our focus on the PHP language. A look at some of the fundamental building blocks of statements in PHP programs. 4.

TRANSCRIPT

Page 1: Sitepoint_Day3_Introducing PHP

Become a better web developer.

Home Products Courses Forums Blogs Podcast Articles Reference Marketplace Help

You are logged in as:

adminloozer x

SitePoint Courses > PHP Live > Introducing PHP

← Back to the dashboard

Lesson 3: Introducing PHP

Today we set aside our database and return to our focus on the PHP language.

Today’s Tasks

Watch a video: Welcome to PHP Live Day 31.

Download today’s code: day3code.zip (8KB)2.

Watch a video:3.

Read an article: PHP Variables, Operators, and Comments

A look at some of the fundamental building blocks of statements in PHP programs.

4.

Read an article: PHP Arrays

An array is a special kind of variable that contains multiple values. If you think of a

variable as a box that contains a value, then an array can be thought of as a box

with compartments, where each compartment is able to store an individual value.

5.

Lessons

Week 1Lesson 1: PHP & MySQL

Lesson 2: Your First Database

Lesson 3: Introducing PHP

Lesson 4: PHP Language

Lesson 5: Recorded Q&A

Week 2Lesson 6: Displaying MySQL Content

Lesson 7: Adding and Removing

Content with PHP

Lesson 8: Database Design: Multi-table

Queries

Lesson 9: Database Design: Complex

Relationships

Lesson 10: Recorded Q&A

Week 3Lesson 11: Structured PHP

Programming

Lesson 12: A Content Management

System (#1)

Lesson 13: A Content Management

System (#2)

Lesson 14: Sessions and Access

Control

Lesson 15: Recorded Q&A

Back to the dashboard

Search this site

PHP Live Lesson 3 "Introducing PHP" http://courses.sitepoint.com/php-live/lesson/3

1 sur 3 14/12/2010 14:54

Page 2: Sitepoint_Day3_Introducing PHP

Read an article: Passing Variables in Links

The key to creating interactivity with PHP is to understand the techniques we can

use to send information about a user’s interaction along with a request for a new

web page. The simplest method we can use to send information along with a page

request is to use the URL query string.

6.

Watch a video: htmlspecialchars7.

Read an article: Passing Variables in Forms

Using links to pass variables between pages is all well and good, but we still have

yet to achieve our goal of true user interaction, where the user can enter arbitrary

information and have it processed by PHP. To enable the user to type in a value,

we’ll need to use a HTML form.

8.

Join a Discussion: Pass a variable to a third page

Most of the examples we looked at today involved passing a variable from one page

to another. But what if that second page contained a link or a form that submitted to

a third page, to which you also wanted to pass the same value? If you’re up for the

challenge, try getting an example of this working, and share your solution in the

private course forum!

9.

That’s all for Lesson 3! Next up is PHP Language.

All done for this lesson? Tell the world via Twitter!

I’ve completed this lesson.

Leave more feedback for the

instructor:

Have a question about this lesson?

Visit the forum

Need help with your account? Email

the team

PHP Live Lesson 3 "Introducing PHP" http://courses.sitepoint.com/php-live/lesson/3

2 sur 3 14/12/2010 14:54

Page 3: Sitepoint_Day3_Introducing PHP

Web Design & Development by SitePoint Solutions, Melbourne, Australia | Logo Design, Web page Design: 99designs.com Back to top

PHP Live Lesson 3 "Introducing PHP" http://courses.sitepoint.com/php-live/lesson/3

3 sur 3 14/12/2010 14:54