Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to put a simple-search-field into the header?


Imi78

Recommended Posts

Posted

Hi,

 

i am looking for a very simple search field in the header. Just a Searchfield and a Go-Button.

 

The Contribs i tested so far were not simple (categories-pull-down-menu) or didnt keep the SIDs, which is not good cause i am not forcing cookies.

 

So are there any suggestions how to get a simple search into the header??

 

Greets

 

ImI

Posted

THX! I added this line of code

 

<?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH+10) . 'px"') . ' ' . tep_hide_session_id() .tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH, 'align="middle"') . '</form>'; ?>

 

which is very similar to your suggested one. Now i have got one minor problem left:

 

The search button wont valign in the center. It ALWAYS is slightly above or beneath the search-field, which is centered.

 

Any idea??

 

ImI

Archived

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

×
×
  • Create New...