PDA

View Full Version : Question about form


Benj
06-02-2000, 02:38 PM
Hi,
I will put a form to search my site from an external source. The search engine generate a form to put on my site with a drop down menu with several options. When I do a search with an option selected, it will only search a a part of my site.

What I would like to do is not to display the drop down menu, and force the search to use one option, lets say in this example option "east site".

Here is the code:

<form method=&quot;get&quot; action=&quot;http://search.atomz.com/search/&quot;>
<input size=15 name=&quot;sp-q&quot;>

<!-- Collections -->
<select name=&quot;sp-k&quot;>
<option value=&quot;&quot;>West side</option>
<option value=&quot;All&quot;>All</option>
<option value=&quot;East&quot;>East site</option>
<option value=&quot;French&quot;>French</option>
</select>

<input type=submit value=&quot;Search&quot;>
<input type=hidden name=&quot;sp-a&quot; value=&quot;0012&quot;>
</form>


How should I change this code ?

Thanks,
Benj
[This message has been edited by Benj (edited 06-02-00@2:41 pm)]

Brian
06-02-2000, 03:19 PM
I tried the above code and could not get it to work. Do you have this code up on your site?

-Brian

Fiend
06-02-2000, 04:59 PM
In your code example you already has the answer.[nbsp][nbsp]Instead of having a select use a hidden form object.

<input type=hidden name=&quot;sp-k&quot; value=&quot;East&quot;>

So just rip out all the selects and options and put a hidden input in their place and you should be good to go.

Benj
06-02-2000, 05:38 PM
Thanks guys.
It worked, I replaced the select by Input and put a hidden.

Benj