<script language="javascript">
function setid()
{
str='<br>';
if(!window.form1.upcount.value)
window.form1.upcount.value=1;
for(i=1;i<=window.form1.upcount.value;i++)
str+='文本框'+i+':<input name="MusicName'+i+'" size=20><br>';
window.upid.innerHTML=str+'<br>';
}
</script>
<form name="form1" method="POST" action="addsong.asp">
<li>需要添加
<input type="text" name="upcount" class="tx" value="1"> 个文本框
<input type="button" name="Button" class="bt" onClick="setid();" value="· 确定 ·">
</li>
<div id=upid></div>