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 Easy windows installation kit for win 9* PHP4 MySQL Apache phpMyAdmin Categories : Installation , PHP , MySQL , Apache , Web Servers How can i see the path of the php3.ini file my php3 uses? Categories : PHP , PHP Configuration 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 How to overide the Max_file_size barier Categories : PHP , PHP Configuration , Filesystem pick up an array of variables from a query string such as:
http://www.archipro.com/test.php?state=AB&state=BC
Categories : PHP , Strings , URLs , Global Variables Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP , PHP , HTML , PDF , Excel Initialize global variables for every field in a table.
This version requires that phplib is installed on your
server. Categories : Global Variables , MySQL , PHP , Variables 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 disable the maximum time of execution of a
php3 script? Categories : PHP Configuration , PHP filter untrusted GET and POST variables and create trusted variable of same name Categories : PHP , Global Variables , Security How can I know about what Operating System is running on server from
PHP? Categories : PHP , Global Variables How to make sure a that $foo is from a cookie and not from the URI. Categories : PHP , Variables , Global Variables , Cookies Make old style (PHP3) scripts using GET, POST, COOKIE and File uploads (POST) compatible with
PHP 4.2.0 Categories : PHP , HTML and PHP , Global Variables , Cookies , Variables