I have been having problems with passing data from one window to another. I can get the data to pass correctly if I change the name attribute in verse.php and the changing product_info.php to match it but for some reason it will not if I use the naming scheme id[prefix_number]. I cannot change verse.php as it will throw the rest of my site off. Is there any way to correct product_info.php to send the data correctly?
These are the important parts of the files in question.
[B]product_info.php
[CODE]<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
function sendValue(s){
var selvalue = s.options[s.selectedIndex].value;
window.opener.document.cart_quantity.id[txt_61].value = selvalue;
window.close();
}
// End –>
</script>
</head>
<body>
<center>
<form name=selectform>
<select name=selectmenu size=”8″>
<option value=”Item A”>Item A
<option value=”Item B”>Item B
<option value=”Item C”>Item C
<option value=”Item D”>Item D
<option value=”Item E”>Item E
<option value=”Item F”>Item F
<option value=”Item G”>Item G
<option value=”Item H”>Item H
<option value=”Item I”>Item I
<option value=”Item J”>Item J
<option value=”Item K”>Item K
<option value=”Item L”>Item L
<option value=”Item M”>Item M
<option value=”Item M”>Item N
<option value=”Item O”>Item O
<option value=”Item P”>Item P
<option value=”Item Q”>Item Q
<option value=”Item R”>Item R
<option value=”Item S”>Item S
<option value=”Item T”>Item T
<option value=”Item U”>Item U
<option value=”Item V”>Item V
<option value=”Item W”>Item W
<option value=”Item X”>Item X
<option value=”Item Y”>Item Y
<option value=”Item Z”>Item Z
</select>
<p>
<input type=button value=”Item Select Item” onClick=”sendValue(this.form.selectmenu);”>
</form>
[B]verse.php
[CODE]<input type=”text” name=”id[txt_61]” size=”32″ maxlength=”32″ value=””>
Any ideas would be great, thanks!