Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

search form


bladeeta21

Recommended Posts

im trying to use the form syntax to make the search in oscommerce work. dose any1 know the syntax to it?

should be something like this i think:

 

<form action="" method="get" name="quick_find">

<input type="text" name="tep_draw_input_field">

<input type="submit" name="BOX_SEARCH_TEXT" value="Find">

</form>

Link to comment
Share on other sites

  • 2 weeks later...

Take what you need from this:

 

<table border="0" width="100%" cellspacing="2" cellpadding="6" >
<tr valign="top">


<?php
echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
?>
<td class="smalltext" valign="top" align="right">
<?php
echo ' ' . tep_draw_hidden_field('search_in_description','1') . tep_draw_hidden_field('inc_subcat', '1', true) . tep_draw_input_field('keywords','Enter search term ...','onfocus="this.value=\'\'" size="10" maxlength="30" class="searchForm" style="width: ' . (BOX_WIDTH-10) . 'px"') .' '. tep_draw_pull_down_menu('categories_id', tep_get_categories(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)))) . tep_hide_session_id() . '<br><br> '. tep_image_submit('button_searchh.gif', IMAGE_BUTTON_SEARCH);

?>
</td>
</tr>
</table></form></td>

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...