Dynadot โ€” .com Registration $8.99

Remove Select Form?

Spaceship Spaceship
Watch

D@Z

Established Member
Impact
0
Hey folks,

I'm currently putting a search bar onto my sites main page for my messgae boards. My message boards are Invision Power Boards v1.2. This code below works fine for searching, but it has an ugly select form that has "Community" highlighted in it.

I tried removing the select form but the search needs it, so is there anyway to hide it? Because I'd really like this ugly thing gone. Thanks people.

HTML:
<form action="../boards/index.php?amp;act=Search&CODE=01">
<input maxlength="100" size="25" onfocus="this.value=''" value="Enter Search Query" name="keywords" id="keywords">
<select name="forums[]" size="1" multiple="multiple">
<option value='all' selected="selected">Community</option>
<option value="c_1">
</select>
<input type="submit" value="GO!"></form>
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
This will hide the select... Not sure if it will work the way you want it to though... What does it require? The select itself or the value of selected attibute? If its just the attrubute a hidden form element might work

For example

Code:
<INPUT TYPE="hidden" NAME="forums[]" value="all">

Below is using css to hide the form element, I dont think this works in Netscape but I could be wrong, I think NS uses "hide" not "hidden"

Code:
<form action="../boards/index.php?amp;act=Search&CODE=01"> 
<input maxlength="100" size="25" onfocus="this.value=''" value="Enter Search Query" name="keywords" id="keywords">
<SPAN style="position:relative; top:0px; left:0px; visibility:hidden;">

<select type="hidden" name="forums[]" size="1" multiple="multiple"> 
<option value='all' selected="selected">Community</option>
<option value="c_1"> 
</select> 
</SPAN>

<input type="submit" value="GO!">
</form>
 
0
•••
I'm not sure what sections it needs, but I tried putting the select form as an Input and hidden but it didnt work. The css worked to hide it, but it left me with a gap to my Go! button.

I had it hidden before so I know it's possible, I just can't remember how to do it and it's bugging me lol. Thanks for the help though.

Any suggestions people?
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back