Help required with search not working.

4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 23, 2017   (RSS)

By Dave - June 22, 2017

Hi willydoit, 

It seems to be working for me.  Which value are you searching for that isn't showing up? 

One tip is in your form tag not to hard code the path.  That way if the hostname, filename, etc changes it will still work and it's easier to copy and paste the form when you want to use it somewhere else.   So you can set your form action="?" and it will use the current PHP page.

Also, when testing the search results code, try just manually entering URLs, eg: 

bridlington-business-directory.php?services_provided=Accountants
bridlington-business-directory.php?services_provided=Bakery

And for the pulldown, I usually try to give a blank first entry like this: 
<option value="">Select a business category</a>

So you're not defaulting to any one category unless that's what you intend to do.

Hope that helps, let me know if you still need help with any part of it.

Dave Edis - Senior Developer
interactivetools.com

By willydoit - June 22, 2017

Hi Dave,

thanks for the help and suggestions, will implement those today, I havent done anything since making the post and it is also working for me now, no idea why. Sorry to have wasted your time.

By Dave - June 23, 2017

No worries, let us know if you need anything else or the problems come back.  Cheers!

Dave Edis - Senior Developer
interactivetools.com