[support] Form with GET method - best practice?

Georg Jaehnig georg at jaehnig.org
Sun Jul 8 02:31:26 UTC 2012


Hi,

I am quite new to Drupal and I want to build a search form that uses
the GET method and that puts only the search value into the GET
variables, e.g. the form is on

http://mysite.com/search

and when the user enters "term" and clicks Submit, he arrives at

http://mysite.com/search?q=term

Is there a best practice for that?

This solution seems to work,
http://drupal.org/node/1391612#comment-5420728
however it still additionally puts the "form_id" value into the GET
variables. Is there a way to omit that?

-- 
Georg | http://serchilo.net - command the web


More information about the support mailing list