JavascriptQ
Programmer
<html>
<head>
<title>using text input to pull up array</title>
<head>
<body>
<!-- If anyone can use simplified java script to help me on this it would be appreciated. I want to have a search box and when the user types in a product such as "watch" or "camera" then the products and product_cost array that corresponds to it will display the product and cost. This search form will be on all of my pages -->
<script language="javascript" type="text/javascript">
var = product ();
product[0] = "watch";
product[1] = "camera";
var = product_cost ();
products [0] = "49.99";
products [1] = "399.99";
</script>
<form method="post" action="mailto:info@mysite.com">
Search for product: <input type="text" name="product" size="40" maxlength="40" value=" type in the name of the product here" /><br />
</form>
</body>
</html>
<head>
<title>using text input to pull up array</title>
<head>
<body>
<!-- If anyone can use simplified java script to help me on this it would be appreciated. I want to have a search box and when the user types in a product such as "watch" or "camera" then the products and product_cost array that corresponds to it will display the product and cost. This search form will be on all of my pages -->
<script language="javascript" type="text/javascript">
var = product ();
product[0] = "watch";
product[1] = "camera";
var = product_cost ();
products [0] = "49.99";
products [1] = "399.99";
</script>
<form method="post" action="mailto:info@mysite.com">
Search for product: <input type="text" name="product" size="40" maxlength="40" value=" type in the name of the product here" /><br />
</form>
</body>
</html>