how to insert a search form in custom content I'm trying to insert a search form in the middle of some custom HTML on a Panel Page.  There's already the Search Block on the page somewhere else.  The Search Widget is available, but it gets inserted after the custom HTML, which is not what I want.  I thought I could do something like
http://api.drupal.org/api/drupal/modules!search!search-block-form.tpl.php/7

&lt;div class="container-inline"&gt;
&lt;?php if (empty($variables['form']['#block']-&gt;subject)): ?&gt;
&lt;h2 class="element-invisible"&gt;&lt;?php print t('Search form'); ?&gt;&lt;/h2&gt;
&lt;?php endif; ?&gt;
&lt;?php print $search_form; ?&gt;
&lt;/div&gt;


or

&lt;?php
drupal_get_form('search_form');
?&gt;


but the PHP doesn't seem to execute (naturally, I have PHP selected as the input.).

Edit:
This produced a search form in the correct place, but the CSS conflicts with the existing Search Block.

&lt;?php print render(drupal_get_form('search_block_form')); ?&gt;
I was close but needed to declare the variable.  I still don't really understand what's happening here, but it works.

&lt;?php global $search_form; print render(drupal_get_form('search_form')); ?&gt;