I actually figured out how it can work.
See it at www.muslimonline.org (the search form in the banner)
You think I can submit this to Dynamic Drive or something?
Its really simple. And it allows you to change the input name, form action, and form method.
HTML Code:
<script type="text/javascript">
function updateSearch(params,frm) {
var data = params.split(">>>");
frm.method = data[0];
frm.action = data[1];
document.getElementById("searchBox").name = data[2];
}
</script>
<form method="post" action="searchsite.php">
<input type="text" id="searchBox" name="searchSite" value="search for..." onfocus="this.value=''" size="15" />
<select onchange="updateSearch(this.value,this.form);">
<option
value="post>>>http://muslimonline.org/index.php?act=Search&CODE=01&forums=all>>>keywords">in Forum</option
>
<option value="post>>>http://muslimonline.org/arcade.html>>>gsearch">in Arcade</option>
<option
value="post>>>http://www.muslimonline.org/index.php?act=quran&op=search>>>query">in Quran</option>
<option value="post>>>http://muslimonline.org/cgi-bin/hadith.cgi>>>in phrase">Hadith</option>
</select>
</form>
Bookmarks