Here is the code of the search box that i have in my navbar template
Code:
<!-- search -->
<if condition="$show['searchbuttons']">
<td align="right" nowrap="nowrap" valign="top">
<if condition="$show['member']">
<form action="search.php?do=process" method="post">
<else />
<form action="search.php$session[sessionurl_q]" method="post">
</if>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="font-size:10px" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
Live search <input type="text" name="query" size="25" class="header_search_field" onkeyup="showHint(this.value)" />
</form>
<div id="search_results" class="smallfont" style="position:absolute; border: 2px solid orange; color:blue; background-color: white; width: 300px; padding: 8px; display:none;overflow:auto; height:200px">
<div align="left"><a href="#" onClick="overlayclose('search_results'); return false">x</a></div>
</div>
</td>
<td nowrap="nowrap" id="navbar_search" class="smallfont"> <a href="search.php$session[sessionurl_q]">Options</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
</tr>
<tr>
<td colspan="2" style="font-size:10px" title="nohilite" nowrap="nowrap">
Show: <label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />threads</label>
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />posts</label>
</td>
</tr>
</table>
</form>
<!-- / search -->