Category Archives: Passing Variables

How to move variables between pages in php

Passing Variables – Passing Objects in PHP

We’ve looked at passing variables, because of the stateless nature of html and the Internet. Every internet page that opens starts at ground zero with no prior knowledge of anything that came before it. Any information that page needs has … Continue reading

Posted in Passing Variables | Tagged | 4 Comments

Passing Variables – PHP Functions

This obviously is not a new topic. Functions and variables have been around for as long as programming has been around, and passing variables in functions are present in all programming languages. For the sake of completeness, since we just … Continue reading

Posted in Passing Variables | Tagged | Leave a comment

Passing Variables – PHP Include and Require

Frequently when you write a php application you have a task or functionality in your code that you will use over and over again.  For example, when verifying form inputs, you would want to make sure that a number is … Continue reading

Posted in Passing Variables | Tagged | 2 Comments

The php.ini file – Configuring Sessions in your Application

I mentioned in the last post that there are over 11 different variables in the php.ini file to use to configure how PHP uses sessions in your application.  I thought a post you could use as a reference to help … Continue reading

Posted in Passing Variables | Tagged | Leave a comment

Passing Variables – The PHP $_SESSION array

The problem of storing user information while the user is accessing the web site is solved with sessions in PHP. Essentially, when the user logs into a web site and enters some information, the server assigns the user a 32 … Continue reading

Posted in Passing Variables | Tagged | 2 Comments