Quotes in search string

3 posts by 3 authors in: Forums > CMS Builder
Last Post: March 27, 2009   (RSS)

I'm trying to search a products section that I've created on a column that stores the size of the product in inches.

I can't seem to get around the problem that the quotes character seems to be causing.

I've currently tried both the following but no luck, does anybody have any ideas?

href="products.php?size_inches_keyword=4 " x 6&quot."

href="products.php?size_inches_keyword=4\" x 6\""

Re: [pothompson] Quotes in search string

By Dave - March 27, 2009

Can you post an url to products.php?

The " approach should work, but you may need to encode space as well. Basically it all needs to be url encoded as well. Try this:

href="products.php?size_inches_keyword=4"+x+6""

Also note that your last quote had a period after it and not a semicolon.

Sometimes it's easier to debug these first by just typing different things into the url and seeing what works there and then figuring out how to represent that in the href link.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com