Click to See Complete Forum and Search --> : form variable can't process on PHP
Recently i have install the apache 2.035+php4.20 on winxp as module,and when i test the installation of php by phpinfo(),it is work and ok. But when i submit some data from a html form,it have no proper feedback to show out the result of process by php.
as i use php 4.12 before,have no this kind of problems,please everyone help me to solve this problem.Thank you very much
register_globals are off by default in PHP >= 4.2.0, and this because of security issues.
The new way to access user-submitted variables is by superglobal arrays:
$_GET - GET-vars
$_POST - POST-vars
$_COOKIE - cookies
$_FILES - uploaded items
$_REQUEST - all those four above
$_SESSION - session-vars
$_ENV - enviroment vars
$_SERVER - server vars
Check your php.ini file.
In php.ini-recommended file parameter "register_globals" is turned off by default. If you want to use variables with same name as <input> name, you will have to change value to "on".
Although, you can use $_REQUEST array. For example (if you had something like <input type="text" name="first_name">):
$first_name = $_REQUEST["first_name"];
Thank you for your useful help.
Thank you very much.
thanks very much from me too as i had the same problem:)
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.