Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Coding a drop-down search box in a form (HTML)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 16 December 2002 :  15:06:24  Show Profile  Visit MarkJH's Homepage
I'm attempting to incorporate the forum search facility within a HTML text/drop-down box combination.

This is what I have so far:



and this is the HTML for the form:

<FORM ACTION="http://search.freefind.com/find.html" METHOD="GET" target="_self">
<FONT size=2 face="arial" color="#FFFFFF"><b>
<INPUT TYPE="HIDDEN" NAME="id" SIZE="-1" VALUE="xxxxxx">
<INPUT TYPE="HIDDEN" NAME="pageid" SIZE="-1" VALUE="r">
<INPUT TYPE="HIDDEN" NAME="mode" SIZE="-1" VALUE="ALL">
<INPUT type="HIDDEN" name="n" value="0">Search Bandlink
for:  <INPUT TYPE="TEXT" NAME="query" SIZE="20"> in:  <SELECT NAME="s">
<OPTION VALUE="bands" SELECTED>Bands/Artists</OPTION>
<OPTION VALUE="labels">Record Labels</OPTION>
<OPTION VALUE="radio">Radio Stations</OPTION>
</SELECT>  <INPUT TYPE="SUBMIT" VALUE="GO">
</font></b></FORM>


As you can see, the form takes the user to a search results page if they search for something with the drop-down pointing to either Bands/Artists, Record Labels or Radio Stations. I want a fourth option 'Forums' which would either a) take the user to a page with the search results created using the form and search.asp (basic search/not archived posts) OR b) take the user to the search.asp page, with their search criteria in the search box allowing for a more detailed search.

Is any of this possible using just the one form?

TIA

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/

David K
Junior Member

494 Posts

Posted - 16 December 2002 :  15:58:12  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
you need to change the action and method dynamicly, no to mention the parameters you use, you mibht be able to do this using javascript, but I doubt it
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 16 December 2002 :  17:28:01  Show Profile  Visit MarkJH's Homepage
So something like this is impossible in pure HTML?

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 16 December 2002 :  17:39:26  Show Profile  Visit Gremlin's Homepage
Yup. you'll need asp or jscript somewhere to do what you want (if I've understood you correctly)

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 16 December 2002 :  17:47:00  Show Profile  Visit MarkJH's Homepage
quote:
(if I've understood you correctly)


I'm bunged up with 'flu... blocked up nose and all that. I can barely understand myself right now.

So basically, you cannot have one form GET or POST to two different sources? Okay, perhaps I can solve the problem with Javascript, or use the Freefind software to include searching the forums... which would be costly. Thanks anyway.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 16 December 2002 :  18:53:32  Show Profile  Visit Gremlin's Homepage
Thats correct, a form is limited to only one ACTION clause.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07