hi [[EMAIL PROTECTED]] wrote:
> Hi,
> 
> Could someone explain what the following passage in php.ini means:
> 
>  You should do your best to write your scripts so that they do not require
> ; register_globals to be on;  Using form variables as globals can easily
> lead
> ; to possible security problems, if the code is not very well thought of.
> 
> If register_globals is off, does that mean you cannot access form variables
> by just referring to their name?  And, if that is so, how do you pass
> information from forms to your action script?

If you had register_globals Off *AND* track_vars On, you could change:

   from: $frmCompanyName
   to:   $HTTP_GET_VARS["frmCompanyName"]
             or
         $HTTP_POST_VARS["frmCompanyName"]

depending on your action method.

HTH.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to