[development] When calling drupal_goto I can't seem to successfully pass a querystring along with the url.
william.darren at gmail.com
Thu Mar 10 18:09:51 UTC 2011
Just want to correct myself - $query can actually be a string or an array in
D6, it seems.
On Thu, Mar 10, 2011 at 12:54 PM, William Smith <william.darren at gmail.com>wrote:
> You didn't specify which version of Drupal you are using, but assuming
> Drupal 6 - drupal_goto expects $query to be a string, not an array.
> So: drupal_goto('admin/store/free_subscription', 'status=bye');
> On Thu, Mar 10, 2011 at 12:46 PM, 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';
>> Within the called page I output the contents of the $_GET variable using:
>> Below is contents of $_GET:
>> [q] => admin/store/free_subscription
>> Note: it has the *q *parameter but no *status *parameter.
>> Any ideas on what I am doing wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development