Msg#: 1584 posted 12:52 am on Aug 23, 2003 (gmt 0)
I turned global variables off in php.ini
I know have the following problem with my forms. This is what i see in my text boxes. <?=$varname?> instead of the value of the variable. Does anyone know how to fix this, do i need to declare the variable before i use it, if so how do i do this?
Msg#: 1584 posted 11:57 am on Aug 24, 2003 (gmt 0)
Regarding the register_globals directive: "Perhaps the most controversial change in PHP is when the default value for the PHP directive register_globals went from ON to OFF in PHP 4.2.0." I actually prefer register_globals off and the PHP manual recommends this practice for security purposes (the directive itself isn't insecure but rather it's the misuse of it). [us3.php.net]
If you have a shared server and you're hosting provider has register_globals on, you can set yourself up by adding an .htaccess file to your php code directories with a single line to turn the register_globals off:
php_flag register_globals off
You'll have to modify your code though, just as described earlier in this post.