Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / How to create link that will search for exact match of phrase?

How to create link that will search for exact match of phrase?

Started by iddy on 27 Jun 2012, 2:21 PM · Views: 577

Results 1 to 3 of 3
27 Jun 2012, 2:21 PM
#1
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

How to create link that will search for exact match of phrase?

Hi

i'm trying to set up links that will search for an exact match of listed phrases. the following link will work if i remove the "" around the phrase Adly 300 Crusader Quad 2005

<a href="index.php?main_page=advanced_search_result&keyword="Adly 300 Crusader Quad 2005"&search_in_description=1">Adly 300 Crusader Quad 2005</a>

I've also manually typed "Adly 300 Crusader Quad 2005" into the advanced search box and then incorporated the resulting url into the link but that doesnt work either.

Can someone see what I'm doing wrong?

Both links I've set up can be found at
http://motorcycleparts.ie/index.php?main_page=page_2

Thanks

27 Jun 2012, 11:02 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: How to create link that will search for exact match of phrase?

You're nesting multiple double-quote marks inside your HTML, and thus breaking the HTML syntax.
Maybe try the html-encoded version of double-quotes inside your search terms instead of an actual double-quote mark.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Jun 2012, 1:05 AM
#3
iddy avatar

iddy

Zen Follower

Join Date:
Jan 2009
Posts:
119
Plugin Contributions:
0

Re: How to create link that will search for exact match of phrase?

Thanks DrByte, that did the trick :thumbsup: