Announcement

Collapse
No announcement yet.

Hard Coded Custom Search

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hard Coded Custom Search

    Hi,

    I'm trying to make an image link search a custom variable I have called GiftIdeas. Certain products use this variable with a text entry of "Christmas Musician". The search is intended to search for any products which contain "Christmas Musician" in the GiftIdeas field.

    This field shows in the advanced search page as a dropdown box and works correctly if used on this page, However I'm struggling to get the hardcoded link to work...

    Code:
    <a href="http://www.enjoymuzic.com/cgi-bin/ss000001.pl?RANDOM=NETQUOTEVAR%3ARANDOM&PAGE=SEARCH&SS=&TB=A&PR=-1&S_Publisher0_0=&S_BrandName0_1=&S_Author0_2=&S_Composer0_3=&S_Editor0_4=&S_ArrangedBy0_5=&S_Instrumentation0_6=&S_ISBN0_7=&S_PublisherCode0_8=&S_Series0_9=&S_Label0_10=&S_GiftIdeas0_11="Christmas+Musician"&GB=A&SX=0&ACTION=Search" title="Click here to see our range of Christmas Songbooks"><img src="http://www.enjoymuzic.com/acatalog/advert_Christmas1.gif"/></a>
    When I click the link I just get the message "no matching products were found". I've tried with the search term being "Christmas Musican" and "Christmas+Musician".

    Anyone got any ideas where I'm going wrong? I'm flummoxed.

    Thanks.


    Dave

    #2
    You cant use " at the start of your link and in your string as it closes the string early.

    Leave the " out of your search term or use a single '

    Mike

    PS. the easy way to do this is to do the search on your website and just copy url from the results page.
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment

    Working...
    X