Tag Archives: Why PHP

How to Code PHP Scripts Video Tutorial

In this series of video’s I take you to the next level in learning How to Code PHP. I’ve included many PHP tutorials on the most in demand PHP scripts including:

  • How to Code a PHP Simple Login Script
  • How to Code a PHP New User Registration Script
  • How to Code a PHP Quality Login Script
  • How to Code a PHP Forgotten Password Script
  • How to Code a PHP Account Activation Script
  • How to Code a PHP Automatic Updating Multiple Drop Down Boxes Script Continue reading How to Code PHP Scripts Video Tutorial

How to Code PHP: Activate Account & Multiple Drop Down Scripts

Here I’ll show you the code that will allow a new user to activate their account and how to create multiple drop down boxes that automatically update. This should be a wild ride so let’s learn How to Code PHP.

PHP Activate Account Script

Obviously, you are going to need to connect to the database and include all of the HTML needed. See my first How to Code PHP Tutorial for that information. I’m just going to include the PHP code for the activation script to keep the article brief.

Here I’ll show you the code that was used on the New User Registration page. This code created the account and then sent the email, that the user will click to get to your activation page. Continue reading How to Code PHP: Activate Account & Multiple Drop Down Scripts

How to Code PHP Sessions & Cookies

In this article I’m going to talk about using cookies and sessions in PHP. I’ll provide many examples to help you learn how to code PHP and then in the next article run you threw some PHP code you can use on your own sites.

Cookies & Sessions

There are two main ways for you to store information on your visitors and create a dynamic site. Cookies are used to store information on the visitors computer. Much like you do with arrays, cookies are stored as a key value pair.

Many people are afraid of cookies, because they think those websites that use them are tracking their every move. For this reason it may be hard to serve up the dynamic content that you want. There are work arounds for those visitors that have cookies shut off as you’ll soon see. Continue reading How to Code PHP Sessions & Cookies

How to Code PHP Part 2

Welcome to the second part of the How to Code PHP Tutorial. In this article I’ll show you the rest of the basics of using the PHP Engine. I’ll cover the following:

  • IF Statements
  • SWITCH Statements
  • FOR Loops
  • WHILE Loops
  • DO WHILE Loops
  • Including Files
  • Creating Functions
  • What Does Scope Mean?
  • Date and Time Functions
  • How to Send Email
  • Accessing Databases

Continue reading How to Code PHP Part 2

How to Code PHP Part 1

Do you want to learn How to Code PHP? Get your thinking caps on and let’s start cranking the PHP Engine.

PHP is a programming language that allows you to process and react to user actions on your website. While JavaScript allows you to process actions directly on a visitors computer, PHP requires that actions are processed on the server in which your website resides.

PHP is most commonly used to access databases on the server that hosts your website. Please read my SQL Tutorial before you read this article, or you may get lost. This tutorial will cover most all you can accomplish with PHP, but will very specifically cover how to interact with a database with PHP.

The Basics of PHP

Like my other tutorials, I will provide you with working PHP Sources you can use, but for now I’ll focus on the basics.

You can embed PHP code directly in your web pages by surrounding the code with an opening <?php and closing tag ?>. You also want to give your web page the PHP extension .php, when you embed PHP code in a web page. Continue reading How to Code PHP Part 1