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.<br><br>So: drupal_goto('admin/store/free_subscription', 'status=bye');<br>
<br>William<br><br><div class="gmail_quote">On Thu, Mar 10, 2011 at 12:46 PM, John Mitchell <span dir="ltr"><<a href="mailto:mitchelljj98@gmail.com">mitchelljj98@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When calling drupal_goto I can't seem to successfully pass a querystring along with the url.<br><br>below is my call to drupal_goto:<br><i> $query = array();<br> $query['status'] = 'bye';<br> drupal_goto('admin/store/free_subscription',$query);</i><br>
<br>Within the called page I output the contents of the $_GET variable using:<br><i>dd($_GET);</i><br><br>Below is contents of $_GET:<br><i>Array<br>(<br> [q] => admin/store/free_subscription<br>)</i><br><br clear="all">
Note: it has the <i>q </i>parameter but no <i>status </i>parameter.<br><br>Any ideas on what I am doing wrong?<br><br>Thanks,<br><font color="#888888"><br>John<br><div style="display: inline;"></div>
<br>
</font></blockquote></div><br>