WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Script to check values being submitted by POST or GET method from a form. This script may help diagnose what variables are being supplied by a browser to other php scripts.
Categories : HTML, Variables, Debugging, PHP, HTTP Update Picture
Nick Talbott
Date : Aug 13th 1998
Grade : 2 of 5 (graded 4 times)
Viewed : 13256
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Nick Talbott
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?php
        // To check output from a form, set the <FORM ACTION=".." to point to this script
        // This script relies on the php configuration directive track_vars being enabled
        // See chapter 4 of the PHP manual

print "Summary of information passed from " . urldecode($HTTP_REFERER) .
"<br><hr>HTTP Headers:<p>";

$headers = getallheaders();
while (list($header, $value) = each($headers))
print "$header: $value<br>\n";

print "<hr>";

print "Values submitted via POST method:<p>";

if ($HTTP_POST_VARS)
{
for(reset($HTTP_POST_VARS); $key = key($HTTP_POST_VARS); next
($HTTP_POST_VARS))
        {
        if (is_array($HTTP_POST_VARS[$key]))
                {
                $num=count($HTTP_POST_VARS[$key]);
                for ($i=0; $i<$num; $i++)
                        print "$$key"."[$i] = ".$HTTP_POST_VARS[$key][$i]."<br>
\n";        
                }
        else
                {
         print "$$key = ".$HTTP_POST_VARS[$key]."<br>\n";
                }
        }
}
print "<hr>";

print "Values submitted via GET method:<p>";

if ($HTTP_GET_VARS)
{
for(reset($HTTP_GET_VARS); $key = key($HTTP_GET_VARS); next($HTTP_GET_VARS))
        {
        if (is_array($HTTP_GET_VARS[$key]))
                {
                $num=count($HTTP_GET_VARS[$key]);
                for ($i=0; $i<$num; $i++)
                        print "$$key"."[$i] = ".$HTTP_GET_VARS[$key][$i]."<br>
\n";        
                }
        else
                {
         print "$$key = ".$HTTP_GET_VARS[$key]."<br>\n";
                }
        }
}
print "<hr>";

?>



The first step Guest Book ... ^^
Categories : MySQL, PHP, Apache, HTML, HTTP
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
How to know which input button of type image was pressed in a form with multiple image buttons (_x and _y) in PHP?
Categories : PHP, Variables, HTML
The following snippet gives complete info about all submitted HTTP_POST_VARS and HTTP_GET_VARS
Categories : Variables, HTTP, PHP
Display variables when a form is submitted using POST/GET
Categories : PHP, Functions, Variables, Debugging
This script shows you the 7th latest php items from the mailing list archive on zend.com
Categories : HTML, HTML and PHP, HTTP, PHP
Request Method Class - seful for situations like form processing or API development. Requires PHP5 for the magic __call() method.
Categories : PHP, PHP Classes, HTTP, Headers
Easy upload class
Categories : PHP Classes, Filesystem, HTTP, PHP
Inserting data to a MySQL Database using AJAX
Categories : AJAX, HTTP, PHP, Databases, MySQL
Alert in JavaScript and Trace in Flash Action script are two commands that I find very much useful for tracking and debugging errors in my scripts. Unfortunately, there is no such option in PHP.
Categories : PHP, Java Script, Debugging
Gonx Proxy - This class is meant to act as an HTTP proxy to serve pages of a remote server as if they were local pages.
Categories : PHP, PHP Classes, HTTP
redirect redirection ip address authentication authenticate addr
Categories : Authentication, HTTP, Network, PHP
Allows you to parse a deliniated string and put the individual fields in a SELECT option in a form
Categories : HTML, PHP, Strings
Simple pipe delimited file export program that downloads to a local machine
Categories : PHP, Filesystem, Databases, MySQL, HTTP
Simple Password example
Categories : PHP, Authentication, Security, HTTP