Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   PHP / mySQL (http://siteownersforums.com/forumdisplay.php?f=10)
-   -   What are Register Global Variables? (http://siteownersforums.com/showthread.php?t=65008)

noahwilson 05-21-2013 07:10 AM

What are Register Global Variables?
 
It is a frequent necessity to transfer variable values between pages. You may have an HTML
which asks for user input to named fields. These fields (as well as hidden variables) will be transferred to a PHP page for processing. This may be the same page that defines the form, or a different one. A method of either 'post' or 'get' must be given in the form tag.

Another way to transfer variable data to another page is make an HTML link (such as with click this link).This of course can be entered on the browser's address line, too. This information (the stuff after the ?, or "var_name_1=data&var_name_2=data") is known as a URL Query String ("UQS") and can be treated like a "GET" form submission.

mikerock 05-22-2013 07:12 AM

Register globals variables is convenient but extremely dangerous, allows an attacker to overwrite variables in a script by adding parameters to requests. While the feature has been disabled by default since PHP 4.2.0. Many hosting providers often enable the feature to provide compatibility with old scripts.

shivendra11 05-24-2013 01:37 AM

What are Register Global Variables?
 
It is a way to transfer variable data to another page is make an HTML link (such as with click this link).This of course can be entered on the browser's address line, too. This information (the stuff after the ?, or "var_name_1=data&var_name_2=data") is known as a URL Query String ("UQS") and can be treated like a "GET" form submission.
__________________

ebrainnight 06-05-2013 01:33 AM

As I am seeing this is a really interesting topic about Register Global Variables and it is described very well, it is helpful for me :)


All times are GMT -7. The time now is 03:38 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.