multiple search forms and search results

I have 5 custom post types in my website and i need to make a search form for each one to show only results from it.
What should be in the search form to only show results from the custom post type which it came from? How do i redirect from each page to a specific page results?

<form role=”search” method=”get” action=”/”>
<input type=”hidden” id=”cat” name=”paints_buildings” />
<input type=”text” size=”16″ name=”s” placeholder=”Search” />
<input type=”submit” value=”Go” />
</form>

Read more here:: multiple search forms and search results

Leave a Reply

Your email address will not be published. Required fields are marked *