How to use the query string in PHP

This article tells you how to pass variables to a PHP page using the query string, and how to access them from that page. Have you ever seen a URL which looked like "www.example.com/pag e.php?mode=1&style=red"? Well, this page is being passed variables and their values through the query string, here the variables "mode" and "style" are being passed, with values "1" and "red" respectively. The question mark indicates the start of the query string and the ampersand, &, symbol seperates variable=value assignments.

 
Visit Site:
How to use the query string in PHP
Filed in:
PHP / Tutorials & Tips / Form Processing
Platforms:
LinuxMicrosoft WindowsUnixApple Mac OS XSun Solaris 
Databases:
No Database 
Date Added:
Jul 10, 2005 
Last Updated:
Jan 7, 2008 

License and Pricing Information

Other

Price: $0.00 USD

Publisher site visits: 12,597
Average rating: 3.62
Total ratings: 39

Be the first to review this listing!

Share this Listing