[support] anonomous users and $_Get variables

Mark Canney mac609 at Lehigh.EDU
Wed Aug 25 16:34:52 UTC 2010


Hello,

We are having some trouble with using $_Get variables in Drupal with 
anonymous users. We have several pages using PHP input that take a 
variable from the query string.

For example:

echo $_GET['myvar'];

For anonymous users, the GET variables sent in the query string are 
ignored, so the above code would not print anything.
The strange thing is that this works fine for an authenticated user, 
i.e. if you are logged in the above code will print the value of myvar= 
sent in the query string.

Any ideas as to why this is happening and how to allow GET variables to 
work for anonymous users?

Thanks in advance,

-- 
Mark Canney
Senior Systems Specialist
Library & Technology Services
Lehigh University
610-758-1432
mark.canney at lehigh.edu



More information about the support mailing list