[development] When calling drupal_goto I can't seem to successfully pass a querystring along with the url.
    Earl Miles 
    merlin at logrus.com
       
    Thu Mar 10 18:11:14 UTC 2011
    
    
  
The version of Drupal you use matters. You don't say, so I'll show both.
I Drupal 7:
drupal_goto('admin/store/free_subscription', array('query' =>
array('status' => 'bye')));
In Drupal 6:
drupal_goto('admin/store/free_subscription', array('status' => 'bye'));
See
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_goto/6
On 3/10/2011 9:46 AM, John Mitchell 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
> 
    
    
More information about the development
mailing list