web blazonry web development scripts and tutorials Get best price on Unlocked Samsung Galaxy A21
   PHP       Name Generators       Perl       CSS       Javascript       Java       MySql       How Tos       Resources   




PHP Name Generators
  Wu-Name
  U.S. Name
  Baby Name

Bookmark and Share




PHP: Session Variables

A session variable is a variable that persists from one page to another without physically passing that information. One common example of a session variable is storing the username of the user logged in.

Session variables are useful for shopping carts and most applications. With session variables you do not need to "hide" data in hidden form fields or pass them via Query Strings from page-to-page.

My example script is the old guess a number between 1 and 100 game. The script uses session variables to track the number picked, number of guesses for the current game, number of games played and total number of guesses from game to game.

Download the source code here: guessnum.phps.

Click the link below to see it in action.


Start New Game Here


Related Link:

 

Newest Pages
Test Google Ads Ver. 2
Free Linux Admin Books
Free Linux Books for Programmers
Free Books for Linux on the Desktop
Free PHP Books
Free JavaScript Books
Free Java Books - Advanced
Free Java Books - Basic
Free Perl Books
Free Python Books
Quote of the Day (PHP)
Debugging Part 2
How to Test Google Ads
Most Popular Pages
Baby Name Generator
U.S. Name Generator
Wu Name Generator
Popup Windows (JavaScript)
Upload and Resize an Image (PHP)
How To Install Apache + PHP + MySQL
Intro to Web Databases (PHP, MySQL)

Least Popular Pages
iNews Applet (Java)
Java Resources
Site Monitor (Perl)
PHP Resources
 
 

  privacy policy     ||     © 1997-2016. astonishinc.com   All Rights Reserved.