search 2 fields code

4 posts by 3 authors in: Forums > CMS Builder
Last Post: February 18, 2013   (RSS)

I would like to search 2 fields on my site.

This is the search field code.

<form method="POST" action="searchResults.php">
<input name="title_keyword" type="text" value="" size="16">
<input type="submit" name="submit" value="Search" class="btn">
</form>

If I want to search "title field" & "intro field".

Can I modify the code like this?

<input name="title_keyword, intro_keyword" type="text" value="" size="16">

Thanks!

Jac

-Jax H.

By gregThomas - February 4, 2013 - edited: February 4, 2013

Hi Jac,

Your very close! You just need to modify your code to look like this:

You can read more on how to use the search system here:

http://www.interactivetools.com/docs/cmsbuilder/viewer_search.html

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By Jason - February 18, 2013

Hi Jac,

Try changing your code to this:

<input name="title,intro_keyword" type="text" value="" size="16">

Hope this helps

---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/