Home  >  Article  >  Backend Development  >  I want to write a generic PHP script to handle any form that comes in F_PHP Tutorial

I want to write a generic PHP script to handle any form that comes in F_PHP Tutorial

WBOY
WBOYOriginal
2016-07-13 10:53:101052browse

Make sure track_vars is in your php3.ini file. If you add "--enable-track-vars" when compiling PHP, it will definitely be there. You have to choose one of two ways: add it at compile time, or add the string on the first line of each script. When track_vars is turned on, three arrays are created: $HTTP_GET_VARS, $HTTP_POST_VARS and $HTTP_COOKIE_VARS. Therefore, to create a general POST method script, you can use the following program:
while (list($var, $value) = each($HTTP_POST_VARS))
{ echo "$var = $value
n "; }

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632419.htmlTechArticleMake sure track_vars is in your php3.ini file. If you add "--enable-track-vars" when compiling PHP, it will definitely be there. You have to choose one of the following two methods: add it during compilation; or...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Binding_PHP TutorialNext article:Binding_PHP Tutorial