<html><body bgcolor="#FFFFFF"><div>Actually, not true. <span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">Arrays work too. According to the api docs.</span></div><div><br></div><div>Hm... Are you really sure that you are editing the right call? Try changing the url to non existant one and just inspecting the browser url to verify that there isn't something else stripping off the url.<br><br>Sent from my iPad</div><div><br>On Mar 10, 2011, at 9:54 AM, William Smith <<a href="mailto:william.darren@gmail.com">william.darren@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>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"><a href="mailto:mitchelljj98@gmail.com">mitchelljj98@gmail.com</a></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>
</div></blockquote></body></html>