OSCOMMERCE :: Customization of Quick Search Form

Discussion in 'PHP' started by yoursanjay, Jan 12, 2011.

  1. #1
    I have customized my store's look through STS. It seems everything working fine. Except My 'Quick Search Product' section. I don't want to uses search box in template and for this I have written the following code in my header template file where the search field will appear:
    
    <form name="quick_find" method="get" action="<?php echo tep_href_link('advanced_search_result.php');?>">
            <div class="search_fild">
            <input type="text" class="search_fild_in"  />
            </div> 
            <div class="search_button">
            <input type="image" name="submit" src="$templatedir$/images/search_buton.jpg" />
            </div>
    
     </form>
    
    Code (markup):
    Now after submission of the form the page is redirected to the Advance search page but no search item is pulled on. When I see the URL, I found like this and there is no keywords (I entered in the form)in the URL.
    http://www.mydomain.com/advanced_se...t_y=7&osCsid=ebbf4c92066ae09bf8f3b5df2ce4c459

    Have I done anything wrong? Please suggest as I want my Quick Search Code would work and I can get the correct search result.

    Thanks.
     
    yoursanjay, Jan 12, 2011 IP
  2. mnvlxxx

    mnvlxxx Peon

    Messages:
    47
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You must set the name at the input.
    <input name="keywords" type="text" class="search_fild_in" />

     
    mnvlxxx, Jan 13, 2011 IP