How do I create a form to search one module only?

Requested and Answered by Carnuke on 2005/1/18 13:04:12

How do I create a form to search one module only?

le="color: #000000"><?php <form style="margin-bottom: 0px; margin-top: 0px;" action="<{$xoops_url}>/search.php" method="post"> <input class="srchinput" name="query" type="text" size="15" /> <input type="hidden" name="action" value="results" /> <input type="hidden" name="mids[]" value="5" /> <input name="Submit" type="image" value="Search" src="<{$xoops_imageurl}>srchbut.gif" align="middle" width="44" height="22" /> </form>



Replace 5 with the id of the module you want searched.
(Thanks Mith, for that snippet)

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=367