[PHP] php.ini version changed, code broke
Hello all from a newbie. We have a Nitix server (from Net Integration Technologies, Inc.) that hosts various web site. Recently they released a software upgrade, and in the release notes was this warning: A number of PHP options (in the php.ini file) were changed, either to improve security or to more closely follow the recommendations of the PHP developers. This should make it easier to run third-party PHP packages on Nitix, but could break existing installations that have been adapted for Nitix. After installing this release, the simplest of all simple things would no longer work - a basic HTML menu with 6 choices passed to a PHP script that prints out the selection chosen by the user!! The variable name when printed (echo'd) in the PHP script was empty. The HTML: form name=form1 method=post action=a.php select name=aName size=1 id=select optionDeb/option optionFrank/option optionJeff/option optionLynne/option optionNick/option optionTom/option /select input type=submit name=Submit value=Submit /form The PHP: ?php echo $aName . ttt; ? What displays??? Just ttt of course. What exactly could have changed to make this simple script fail? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php.ini version changed, code broke
On Wednesday 08 February 2006 16:16, [EMAIL PROTECTED] wrote: What displays??? Just ttt of course. What exactly could have changed to make this simple script fail? register_globals probably http://uk.php.net/register_globals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php.ini version changed, code broke
[snip] What displays??? Just ttt of course. What exactly could have changed to make this simple script fail? [/snip] register_globals in the php.ini has been set to 'off' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php.ini version changed, code broke
You should use $_POST... On 2/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello all from a newbie. We have a Nitix server (from Net Integration Technologies, Inc.) that hosts various web site. Recently they released a software upgrade, and in the release notes was this warning: A number of PHP options (in the php.ini file) were changed, either to improve security or to more closely follow the recommendations of the PHP developers. This should make it easier to run third-party PHP packages on Nitix, but could break existing installations that have been adapted for Nitix. After installing this release, the simplest of all simple things would no longer work - a basic HTML menu with 6 choices passed to a PHP script that prints out the selection chosen by the user!! The variable name when printed (echo'd) in the PHP script was empty. The HTML: form name=form1 method=post action=a.php select name=aName size=1 id=select optionDeb/option optionFrank/option optionJeff/option optionLynne/option optionNick/option optionTom/option /select input type=submit name=Submit value=Submit /form The PHP: ?php echo $aName . ttt; ? What displays??? Just ttt of course. What exactly could have changed to make this simple script fail? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php