WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
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 Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
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
Submit Site
Forex Trading Online forex trading platform

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 : forum field names
Categories : Global Variables, PHP, PHP Configuration, Installation Update Picture
Rasmus Lerdorf
Date : Jun 30th 1998
Grade : 1 of 5 (graded 1 times)
Viewed : 5064
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Rasmus Lerdorf
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

Question :
========
I would like to write a generic PHP script that can handle data coming
from any form. How do I know which POST method variables are available?

You need to compile PHP with the "--enable-track-vars" configure switch.
This creates three associative arrays. $HTTP_GET_VARS, $HTTP_POST_VARS
and $HTTP_COOKIE_VARS. So, to write a generic script to handle POST
method variables you would need something similar to the following:

while (list($var, $value) = each($HTTP_POST_VARS)) {
echo "$var = $value<br>n";
}

you can turn --enable-track-vars on, or even turn it on, on a
per-script basis by putting:

<?php_track_vars?>
as the very first line of your file.




What is safemode?
Categories : PHP, Installation, PHP Configuration
What to do if PHP3 doesn't find your FreeType library.
Categories : PHP Configuration, Installation, PHP
Simple script to passing persistent and growing array between recalls of one page (manipulate little stack).
Categories : Arrays, Global Variables, PHP, HTML and PHP, Variables
How can I know about what Operating System is running on server from PHP?
Categories : PHP, Global Variables
How can i see the path of the php3.ini file my php3 uses?
Categories : PHP, PHP Configuration
getting the name of the current script and query string
Categories : PHP, Global Variables, Variables, URLs
gd libraries make gmake php3 apache-1.3.0 gd1.3 FreeBSD-2.2
Categories : Installation, PHP, Apache, Web Servers
Why do i get a "Save As" dialog box when I type in the url of a php3 file
Categories : PHP Configuration, PHP, Apache, Web Servers
This functions compares the current PHP version with a desired version. Because of the 3 tiered version system, a direct compare of a string to phpversion() will not be accurate.
Categories : PHP Configuration, PHP, Variables
make: Fatal error: Command failed for target `target_static`
Categories : PHP, Installation
using global variables
Categories : Global Variables, PHP
Easy windows installation kit for win 9* PHP4 MySQL Apache phpMyAdmin
Categories : Installation, PHP, MySQL, Apache, Web Servers
Stronghold 2.3 PHP3RC4 PHP3 COMPILE FAILURE parse error httpd.h
Categories : Installation, PHP
Step by Step installation manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or ISAPI
Categories : PHP, PHP Configuration, PHP Options and Info, Windows 2000
How can I disable the maximum time of execution of a php3 script?
Categories : PHP Configuration, PHP