<form type=get action="DisplayProduct.html"> <pre>Quantity : <input name="passquan" id="Quantity" class="myinput" type="textbox" value="" readonly /></pre> <pre>Name : <input name="passname" id="Name" class="myinput1" type="textbox" value="" readonly /></pre> <pre>Price : <input name="passprice" id="Price" class="myinput2" type="textbox" value="" readonly /></pre> <A HREF="DisplayProduct.html?Australia.png"> <img border="0" src="Australia.png" width="50" height="50"></A> <input type=submit value="View Details"> </form>
<html> <head> <title> Separate Product </title> <script language="JavaScript" type="text/javascript"> if (location.search) { var image_filename = location.search.substring(1) //document.write('<IMG SRC="' + image_filename + '">') document.write('<IMG "STYLE="position:absolute TOP:200px LEFT:300px" SRC="' + image_filename + '">') } </script> <script LANGUAGE="JavaScript"> function getParams(){ var idx = document.URL.indexOf('?'); var params = new Array(); if (idx != -1) { var pairs = document.URL.substring(idx+1, document.URL.length).split('&'); for (var i=0; i<pairs.length; i++){ nameVal = pairs[i].split('='); params[nameVal[0]] = nameVal[1]; } } return params; } params = getParams(); quantity = unescape(params["passquan"]); name = unescape(params["passname"]); price = unescape(params["passprice"]); document.write("Quantity = " + quantity + "<br>"); document.write("Product Name = " + name + "<br>"); document.write("Product Price = " + price + "<br>"); </script> </head> <body> <a href="indexcornew.html"> Back </a> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)