Also, suppose I do turn it off. Will I still be able to pass php variables to scripts like this
Code: Select all
<a href="myscript.php?pie=".$phpvarpie.">go here</a>Thanks.
Moderator: General Moderators
Code: Select all
<a href="myscript.php?pie=".$phpvarpie.">go here</a>It's easy, but it's deprecated, that means that you won't have the option in later versions of PHP and will have to code for register_globals off.Pyrite wrote:I've heard from various places that using register globals to on is bad or insecure, but what I am wanting to know is how bad or insecure it really is? I'm not asking to teach how to hack or anything, but I'd like to know how insecure it is so that I can decide if it really is insecure for my special situations. Cause currently, I use register globals to on in all my scripts, cause it is just easy.
Yes you can, however, you won't be able to use $pie to get the data initially, you will have to use $_GET['pie'].Pyrite wrote:Also, suppose I do turn it off. Will I still be able to pass php variables to scripts like thisCode: Select all
<a href="myscript.php?pie=".$phpvarpie.">go here</a>
Yes they will, they will all be stored in the $_POST array.Pyrite wrote:And also, if I turn it off, can I still access form variables some how? Like I call a script called foo.php as the action in my form using post. Will the form elements still be accessible in foo.php as variables somehow?