Log in

View Full Version : Search on non vb, but how to get forum specfic?


Gutspiller
07-12-2002, 01:53 AM
Here's the code I have:



<form action="http://www.TheForumz.com/forumz/search.php" method="post">
<input type="hidden" name="s" value="">
<img src="../images/space.gif" width="1" height="3">
<input onblur="if (value == '') {value = 'Search News'}" onfocus="if (value == 'Search News') {value =''}" size=15 name="query" value="Search News">
<input type="hidden" name="forumchoice" value="-1"><input type="hidden" name="titleonly" value="1">
<input type="hidden" name="action" value="simplesearch"><input type=image src="http://www.TheForumz.com/images/new/go.jpg" align=absMiddle border=0 name=Submit alt="" accesskey="s">
<input type="hidden" value="" name="showposts">
<input type="hidden" name="searchdate" value="-1">
</form>



I want it to only search the news catagory forums (150). Can somebody help me with getting it so that when somebody uses this field on the front page that it will only search the news?

I would really appreciate any help I can get.

Thanks a bunch!

Admin
07-12-2002, 05:48 AM
<input type="hidden" name="forumchoice" value="-1">
Change -1 to the forum ID.

Admin
07-12-2002, 05:48 AM
<input type="hidden" name="forumchoice" value="-1">
Change -1 to the forum ID.

Gutspiller
07-12-2002, 02:29 PM
*slaps forehead* Doh!

Thank you for helping my fried mind spot that. :)