• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 133
  • Last Modified:

Database/Search on HomePage

Hello...
I need to do a search function for a Home Page. But actually I don't have any idea how I would to that. What I need is something like a ComboBox where the user can select a product and then click a "GO-Button". This should bring him/her to another site, which contains more detailed information about the product selected. Could some post some sources, docs please ?
thx
0
omsec
Asked:
omsec
1 Solution
 
MasseyMCommented:
Do you want to create individual pages for each product item?
ie I choose Product 1 ad then go to product 1 page?

if so, use this (No go button needed...):
<SELECT NAME="Products" onChange="GoHere(this)">
<OPTION VALUE="product1.html">Product1</OPTION>
<OPTION VALUE="product2.html">Product2</OPTION>
</SELECT>

<SCRIPT LANGUAGE="Javascript"><--
function GoHere(s)
{ var d = s.options[s.selectedIndex].value;
window.top.location.href = d;
s.selectedIndex=0;
}
//--></SCRIPT>
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now