Hi experts,

I have a question on the below two Javascript code.

1)
<script langauge="javascript">
function post_value() {
opener.document.myform.filenm_<?php echo $row; ?>.value = <?php echo $row; ?>;
self.close();
}
</script>

2)
<script langauge="javascript">
function post_value() {
opener.document.myform.filenm[<?php echo $row; ?>].value = <?php echo $row; ?>;
self.close();
}
</script>


in the above two scripts, 1 is working but 2 is not working. the element is 2 is array(i need array for grid data in php), so i need the element id as filenm[] for PHP. please help.

thanks in advance.