Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Search Bar relocation


808smokey

Recommended Posts

Posted

Hi,

 

I've seen a few of your websites that have move the search box up to the header and I've tried to to this but I get parse errors. I was hoping someone can tell me how to do this correctly.

Here's a picture of a site I found it on so you can see what I mean.

 

 

search_bar.gif

 

 

Thanks

Posted

create a <td> then place this code

<?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 . '"> ' . '<input type="submit" value="Go"><br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . tep_draw_hidden_field('search_in_description', '1') . '</a>'; 
echo '</form>'; 
?>

then close the </td>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...