Posted by khanshakeeb@gro... on August 15, 2008 at 5:18am
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???
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
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
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
Please help..
How to redirect form with _POST data.
Thanks in advance.....