Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search in header?


teodorp

Recommended Posts

Hi,

how to exchange the 3 pictures in header with search form?

I try to exchange them with:

 

<td align="right" valign="top">

<td class="main" align="right" valign="middle"><? echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?></td>

<td class="main" align="right" valign="middle"><? echo tep_draw_input_field('keywords', '', 'size="10" maxlength="30" valign="top" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit('button_find2.gif', BOX_HEADING_SEARCH) . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>'; ?></td>

</td>

 

and everything looks fine but the manufacturer box does not work correct and when I search a product on the next page the search word still apear on the box.

 

PLEASE HELP ME!

I have to know...:)

Link to comment
Share on other sites

I found the answer here in forum!

 

<?php

$hide = tep_hide_session_id();

echo '<form name="quick_find" method="get" action="' . tep_href_link (FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">';

echo $hide . '<input type="text" name="keywords" onFocus=this.value="" size="20" maxlength="30" value="' . BOX_SEARCH_TEXT . '"> ' . tep_image_submit('button_find2.gif', BOX_HEADING_SEARCH) .'<br><b><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . '</b></a>';

echo '</form>';

?>

I have to know...:)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...