You 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 asweb master engineer: recently I encounter a problem as follow ,I want to ask you My system is windows xp sp1, now I set up Apache server 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 me
<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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php