Jump to content

$_GET question


hostfreak

Recommended Posts

you always need to define if the variable is coming from post or get or a cookie or a session or whatever. If you don't, php will accept it as a new variable which will cause a problem of values.

Maybe you don't need to write $_GET but $_HTTP_GET_VARS. That is because o different versions of php
Link to comment
https://forums.phpfreaks.com/topic/20377-_get-question/#findComment-89737
Share on other sites

[quote author=wildteen88 link=topic=107631.msg432018#msg432018 date=1157976385]
The other host has a setting called register_globals enabled. You can still use $_GET['variable'] to access the variables from the URL if your other hosts is using a PHP version greater the PHP4.3.
[/quote]

indeed, but keep in mind that it is highly suggested [b]not[/b] to have register_globals enabled. you should always write your code in such a way as to work without it enabled since, as wildteen hinted at, as of PHP 4.3, it is disabled by default.
Link to comment
https://forums.phpfreaks.com/topic/20377-_get-question/#findComment-89750
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.