On Mon, 14 Jan 2008 09:37:19 -0800 "Florian Loretan" <floretan@gmail.com> wrote:
If the only thing you want to do is redirect the user after form submission, just set the #redirect property of the form.
$form['#redirect'] = 'my/custom/path';
Alternatively, you could call your form with a parameter:
$_GET stuff get encoded or trimmed. No matter if I put it into the #action, #redirect or "hardcode" it into the return of _submit. My interest in $_GET in spite of hooks is I've a bunch of parameters that are common to forms and are useful in the final form landing page. If they were "positional" I'd have to extract them in different ways accordingly to the length of the path in the menu hook. So similar form may redirect to /bla/bli/blu?id=37 /bim/bum?id=37 /bau?id=37 and there is a part of common code that will pick up the id and build up some content. But no matter how I try to pass an additional query param through the FAPI it gets mangled or chopped. It get chopped/mangled just after the _submit hook. -- Ivan Sergio Borgonovo http://www.webthatworks.it