PDA

View Full Version : radio buttons to switch what forum is being searched?


Gutspiller
01-18-2003, 04:14 PM
Here's the code I currently have:


<form action="http://www.TheForumz.com/forumz/search.php" method="post">
<input type="hidden" name="s" value=""><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="150"><input type="hidden" name="titleonly" value="1"><input type="hidden" name="action" value="simplesearch"> &nbsp;<input type=image src="http://www.TheForumz.com/forumz/new_images/news_search.gif" align=top border=0 name=Submit alt="Search the most comprehensive game/hardware news archive online." accesskey="s"><input type="hidden" value="" name="showposts"><input type="hidden" name="searchdate" value="-1"></form>


You can see what it looks like here: http://www.theforumz.com/forumz/forumdisplay.php?s=&forumid=3

So it adds a search field to my pages that says Search News. Well, I was wondering if it's possible to add radio buttons by it that says news and forums and the forum that's search changes depending on which radio button is selected.

Can somebody help me by telling me what I need to append to the current code I already have? I really want this feature and would reallyappreciate any help you can offer.

Thanks.