By the first one I mean the first product in the list. Below the 3 cases. I intentionally left the tags out.
Case1:
option value="[blk_list_product.Id]" [blk_list_product.Name;block=option]
Then the selection list will start with Selection2.
Case2:
option value="0" <Select a product to display
option value="[blk_list_product.Id]">[blk_list_product.Name;block=option]
Then the selection list will start with Selection1. When I select Selection1 the $_GET variable is not updated (nothing happens).
Case3:
option value="0" <Select a product to display
option value="0" <Select a product to display
option value="[blk_list_product.Id]">[blk_list_product.Name;block=option]
Then the selection list will start with "Select a product to display".
Below the code from EI6 and Firefox101 the strange thing is that the Firefox version is missing the closing quote from the first option tag. I manually deleted a number of off option tags to prevent the text from becoming too long.
EI6
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ACM Research</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/acm.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="selectproduct.php" method="get" name="form1" id="form1" onchange="submit()">
<div align="center">Product:
<select name="blk_list_product" class="normal" id="list_product>
<option value="0"><Select a product to display></option>
<option value="0"><Select a product to display></option>
<option value="12">Selection1</option>
<option value="25">Selection2</option>
<option value="9">Selection3</option>
<option value="16">Selection4</option>
</select>
</div>
</form>
</body>
</html>
|
Firefox101
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/acm.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="selectproduct.php" method="get" name="form1" id="form1" onchange="submit()">
<div align="center">Product:
<select name="blk_list_product" class="normal" id="list_product>
<option value="0><Select a product to display></option>
<option value="0"><Select a product to display></option>
<option value="12">Selection1</option>
<option value="25">Selection2</option>
<option value="9">Selection3</option>
<option value="16">Selection4</option>
</select>
</div>
</form>
</body>
</html>
|
Another thing (slightly off-topic) is that when I select a option from the list in Firefox the URL is correctly updated with ..?blk_list_product=12 and the $_GET variable is updated, but in IE nothing happens?