Fermo restando che convengo con quello appena detto, questa è la pagina html

La pagina server serve solo per verificare i parametri

codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <script language="javascript" type="text/javascript">
// <!CDATA[

function mostradiv(nome)
{
    var nomediv= "div" + nome;
    if (document.getElementById(nome).value!='' && IsNumber(document.getElementById(nome).value))
    {
	    if (document.getElementById(nome).value>0)
	    {
		    var numero=document.getElementById(nome).value;
		    var testo="";
		    for (i=0;i<numero;i++)
		    {
			    var divdue= "div" + nome + "_" + i;
			    testo = testo + "
Numero di iscrizione all'albo: <input type='text' name='" + nome + "-" + i + "' id='" + nome + "-" + i + "' >";

		    }
		    document.getElementById(nomediv).innerHTML = testo;
		    document.getElementById(nomediv).style.display="block";
	    }
	}
}

function IsNumber(Expression)
{
    Expression = Expression.toLowerCase();
    RefString = "0123456789.-";
    
    if (Expression.length < 1) 
        return (false);
    
    for (var i = 0; i < Expression.length; i++) 
    {
        var ch = Expression.substr(i, 1);
        var a = RefString.indexOf(ch, 0);
        if (a == -1)
            return (false);
    }
    return(true);
}

// ]]>
</script>

</head>
<body>
    <form name="pagamento" action="a.aspx?corsigrat=0" method="post">
    <input type="text" onkeyup="mostradiv('1');" name="1" id="1" value="" style="width: 30px" />
    <div id="div1" style="display: none" class="testo"></div>
    <input type="submit" name="conferma" value="Conferma" />
    </form>
</body>
</html>