How do I print the search form in a template file?

Thanks

Comments

glennnz’s picture

Status: Active » Closed (fixed)

Solved

<?php $form = drupal_get_form('search_block_form', TRUE); ?>
<?php print render($form); ?>
glennnz’s picture

Status: Closed (fixed) » Active

Ah, nope, not solved.

This displays the form fine, but it doesn't work, no search occurs....

glennnz’s picture

It's not working because I've hidden the submit button. As soon as I bring that back, it all works fine.

glennnz’s picture

Bump

Jeff Burnz’s picture

I found a couple of different ways over here: http://drupal.org/node/1021902