nameを配列名で指定したいのですが、うまくいきません。
name="an[i]"、これって不可能なのでしょうか。解決方法を教えてください。
<form action="form_receive.html" method="get">
<script type='text/javascript'>
for(i = 1 ; i < kamoku.length ; i++ ){
document.write('<tr><td bgcolor="lightgreen" />');
document.write(Question[i]);
document.write('<input type="radio" name="an[i]" value="2" />A');
document.write('<input type="radio" name="an[i]" value="1" />B');
document.write('<input type="radio" name="an[i]" value="0" checked />無関係');
}
</script>
<input type="submit" value="送信" >
</form>