[support] Form API help needed

Jonathan Hedstrom jhedstrom at opensourcery.com
Fri Oct 24 23:00:16 UTC 2008



nebodysguess at gmail.com wrote:
> Hi,
>
> I created a form module which is displayed as a block on the home page. 
> On submitting this form you get something like this :
>
> http://website_name.com/pages/?location=chicago&degree=MBBS ....... and 
> so on
>
> but I want the parameters to be sent to the results.tpl.php page
>
> I'm using 'get' method & $form_state['redirect'] = "?q=results". I'm 
> using Drupal 6.2
>
> What else should I do ?
Try setting the #action to whatever path you need it to go to.

$form['#action'] = url('foo/bar')

http://api.drupal.org/api/file/developer/topics/forms_api_reference.html#action

Cheers,

Jonathan

-- 
Jonathan Hedstrom                                     OpenSourcery
http://opensourcery.com                        Technology for Good


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.drupal.org/pipermail/support/attachments/20081024/00d74448/attachment.pgp 


More information about the support mailing list