[development] When calling drupal_goto I can't seem to successfully pass a querystring along with the url.

Dave Metzler metzler.dl at gmail.com
Thu Mar 10 18:00:24 UTC 2011


Drupal 6 or 7?

Sent from my iPad

On Mar 10, 2011, at 9:46 AM, John Mitchell <mitchelljj98 at gmail.com> wrote:

> When calling drupal_goto I can't seem to successfully pass a querystring along with the url.
> 
> below is my call to drupal_goto:
>   $query = array();
>   $query['status'] = 'bye';
>   drupal_goto('admin/store/free_subscription',$query);
> 
> Within the called page I output the contents of the $_GET variable using:
> dd($_GET);
> 
> Below is contents of $_GET:
> Array
> (
>     [q] => admin/store/free_subscription
> )
> 
> Note: it has the q parameter but no status parameter.
> 
> Any ideas on what I am doing wrong?
> 
> Thanks,
> 
> John
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110310/b6e1ba49/attachment.html 


More information about the development mailing list