$form['redirect'] = "something=$someId"; doesn't work in Drupal 7 I am here again with a problem! I want to make a form redirect usign a url with ids and somethings else as parameter, but when the code is executed something encode my url, so, if I put something like this $form_state['redirect'] = "page=$nid"; I get this in the url "page*%3D*123456789" %3D is the =$. So, how i have to do that? I tested with utf8_encode too. 

Can I use a drupal_goto() inside a form? Why yes? Why not?

Thanks people!
What you set in $form_state['redirect'] can be:


a string containing the destination, such as node/1, admin/reports/status, or user/1.
an array of arguments compatible with drupal_goto().


The examples shown in drupal_redirect_form() are the following ones:


This redirect the form to node:

$form_state['redirect'] = 'node';

This redirect the form to node/123?foo=bar#baz:

$form_state['redirect'] = array(
  'node/123',
  array(
    'query' =&gt; array(
      'foo' =&gt; 'bar',
    ),
    'fragment' =&gt; 'baz',
  ),
);



In your case, if you want to redirect to page/$nid, you should use the following code:

$form_state['redirect'] = "page/$nid";


If you really want to redirect to page=$nid, then you should use the following code:

$form_state['redirect'] = array(
  array(
    'query' =&gt; array(
      'page' =&gt; $nid,
    ),
  ),
);