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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.