ramblenman
Technical User
I have some pics. they all have a different value assigned to them. I want the photo that is chosen to show up on a new page and the value to be used later in a caculation. I have come up with this script(with some help), but it will not direct me to the new page.
<html>
<head>
<title>Chiller</title>
<script type="text/javascript">
<!--
function calculate(bottle) {
var totalAmount=bottle*10;
}
// -->
</script>
</head>
<body>
<form action="">
<a href="page2.html?pic=chr500ml.jpg&calc=.01"><input type="image" src="
chr500ml.jpg" onclick="calculate(0.01)"/></a>
<a href="page2.html?pic=db500ml.jpg&calc=.02"><input type="image" src="db
500ml.jpg" onclick="calculate(0.02)"/></a>
<a href="page2.html?pic=cw375ml.jpg&calc=.03"><input type="image" src="cw
375ml.jpg" onclick="calculate(0.03)"/></a>
</form>
</body>
</html>
Thanks for your help
<html>
<head>
<title>Chiller</title>
<script type="text/javascript">
<!--
function calculate(bottle) {
var totalAmount=bottle*10;
}
// -->
</script>
</head>
<body>
<form action="">
<a href="page2.html?pic=chr500ml.jpg&calc=.01"><input type="image" src="
chr500ml.jpg" onclick="calculate(0.01)"/></a>
<a href="page2.html?pic=db500ml.jpg&calc=.02"><input type="image" src="db
500ml.jpg" onclick="calculate(0.02)"/></a>
<a href="page2.html?pic=cw375ml.jpg&calc=.03"><input type="image" src="cw
375ml.jpg" onclick="calculate(0.03)"/></a>
</form>
</body>
</html>
Thanks for your help