Sample PHP Code: PHP Variable Variable

The ability in being able to make a PHP variable name dynamic can be very useful. As long as you are confident in the data you are working with, this is a safe alternative in working with complex data systems and can make your PHP code more robust. Continue reading

Beginning PHP Part 2: Learn PHP Functions and Security

Getting a basic familiarity with PHP is not difficult, but if you don’t understand a few key elements you will find it difficult to work with. This beginning PHP series is meant to help you learn PHP. In this tutorial we take it to the next level and get down and dirty with PHP functions and take a look at basic PHP security.

This beginning PHP tutorial is part two in the series. Take a look at part one of the Beginning PHP series if you haven’t already. Continue reading

Beginning PHP Part 1: Working with Variables

Getting a basic familiarity with PHP is not difficult, but if you don’t understand a few key elements you will find it difficult to work with. This beginning PHP tutorial attempts to break down a few of the core PHP programming elements through simple examples and descriptions. Continue reading

PHP Form Validation

If you program custom PHP applications, you will often times need to work with a form and require certain form fields. A few real world examples would be a contact form, registration form or signup form. This form validation with PHP tutorial shows you a simple and quick method for creating a form page that handles errors and pre-populates fields if there is an error, and a method for processing the php form and validating the information. Continue reading