drupal form redirection

Events happening in the community are now at Drupal community events on www.drupal.org.
khanshakeeb@groups.drupal.org's picture

hi,
i am trying to redirect form after submitting and it works fine
like $form['#reditrect']=path
but i want to pass value to that url or path any idea???

Comments

Re:drupal form redirection

blue.moon's picture

You can set an array to $form['#redirect']
i.e. $form['#redirect'] = array('user/login', 'destination=node', 'page=2');

After that URL and query String will be like this.
http://www.drupal.org/?q=user/login&destination=node&page=2

I think that will work for you.

Redirect Form

yashsharma01's picture

Hi,
You can appned the strings in the path

otherwise
You can use drupal_goto() function.
in the submit hook.
Example.

$string = "id=123";
drupal_goto('path',$sting);

Thanks
Yash

Redirect form with _POST data

kumaryadav.anil's picture

Please help..
How to redirect form with _POST data.

Thanks in advance.....

Pakistan

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: