Mailinglisten-Archive |
> -----Original Message----- > From: php-admin_(at)_php-center.de > [mailto:php-admin_(at)_php-center.de]On Behalf > Of Muzaffer Sagol > > Was macht der Schalter enable-track-vars genau? > Zitat aus http://www.php.net/FAQ.php 7.1. 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? Make sure that the track_vars feature is enabled in your php3.ini file. If you compiled PHP with "--enable-track-vars" it will be on by default. Alternatively you can enable it at run-time on a per-script basis by putting <?php_track_vars?> at the top of your file. When track_vars is on, it 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"; } Gruss, Juri
php::bar PHP Wiki - Listenarchive