[support] anonymous users and $_Get variables

Mark Canney mac609 at Lehigh.EDU
Thu Sep 2 16:18:48 UTC 2010


Thanks to everyone for your feedback.  We literally stumbled across a 
resolution:  At the same time, we noticed a problem with images in the 
node mysteriously resizing to a 180 width.  From there we found a thread 
which suggested this problem had been fixed by giving "permission to 
"enable mobile plugin for" for both anonymous and authenticated users".  
We had just installed the mobile plugin module (before the problem 
started) and neglected to give permissions to anonymous users.

When we executed the fix for the mysteriously resizing images, the 
problem with the ignored variables for anonymous users was corrected as 
well.

As a Drupal newbie, I'm not sure what the lesson is here but I will duck 
as you should feel free to chime.

Mark

Mark Canney wrote:
> 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