View Single Post
  #2  
Old 09-27-2007, 02:26 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Copy search box to non-cart pages

Yes, just extract the form code and put it in your page, and make sure you reference the file search.php correctly in the form action:

<TABLE width="100%" height="1" border="0" cellpadding="0" cellspacing="0" align="right" valign="top">
<FORM method="POST" action="search.php" name="productsearchform">
<INPUT type="hidden" name="simple_search" value="Y">
<INPUT type="hidden" name="mode" value="search">
<INPUT type="hidden" name="posted_data[by_title]" value="Y">
<INPUT type="hidden" name="posted_data[by_shortdescr]" value="Y">
<INPUT type="hidden" name="posted_data[by_fulldescr]" value="Y">
<TR>
<TD align="right">Search<INPUT type="text" name="posted_data[substring]" size="20"> </TD>
<td width="10">&nbsp;</td>
<TD width="23"><A href="javascript: document.productsearchform.submit()">Go</A></TD>
</TR>
<TR>
<TD colspan="3" align="right" valign="top">
<A href="/equine/search.php" class="SmallLink">Advanced Search</A>
</TD>
</TR>
</FORM>
</TABLE>
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote