I want to move the search to the header where the currency/language used to be. (I already removed) I've done this before and it worked fine, then I upgraded and forgot about it.

I've added this to header.tpl
<div id="search">
<div class="left"></div>
<div class="button-search"></div>
<div class="middle">
<?php if ($filter_name) { ?>
<input type="text" name="filter_name" value="<?php echo $filter_name; ?>" />
<?php } else { ?>
<input type="text" name="filter_name" value="<?php echo $text_search; ?>" onclick="this.value = '';" onkeydown="this.style.color = '#666666'; font-size= 11px;" />
<?php } ?>
</div><!-- #search .middle (end) -->
<div class="right"></div>
</div><!-- #search (end) -->
But then I get the error:
Notice: Undefined variable: filter_name in /home/faithful/public_html/Cart/catalog/view/theme/caramella/template/common/header.tpl on line 63
plus I'm not sure if is in the right spot.
Any help would be greatly appreciated!
Faithfully,
Dawn
http://www.Faithfullyyours.net/Cart