Re: recently I meet a problem as follow ,I want to ask you
| From: | Chris Hayes | Date: | Wed, 12 Mar 2003 08:46:42 +0000 |
| Subject: | Re: recently I meet a problem as follow ,I want to ask you | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-139244@lists.php.net to get a copy of this message | ||
At 03:56 12-3-03, you wrote:
web master engineer:<input name="fieldname"> you can read the value in the next page now with: $_POST['fieldname'] The reason for this new input mechanism is explained on http://www.php.net/release_4_1_0.php. There are ways to tell PHP to use the old way, i _think_ that was setting register_globals=On in the php.ini file.recently I encounter a problem as follow ,I wantto ask youMy system is windows xp sp1, now I set up Apacheserver V1.3.27 as localhost server and download PHP4.3,I have configured PHP as SAPI Module.it can work correctly as common php file which example for <?phpinfo();?>,it show many tables,it means I config correctly.but why when I post pamameter to an action page,all the pamaeter which I get is blank that is "".so the action page run incorrectly,how could I do?thank you for replying meYou did nothing wrong with the configuration, but PHP has changed the way it handles incoming variables now. The change happened with PHP 4.1.0. Form fields and parts of the url like page.php?var=1&var2=2 are not automatically changed to variables anymore. When the form has an element such as