Jest takowa możliwość

[xml:1:adcb40247c]<?xml version="1.0" encoding="iso-8859-2" ?>
<!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" xml:lang="en" lang="en">
<head>
<title>php.pl</title>
<script type="text/javascript">
<!--
function eId( eId )
{
return document.getElementById( eId ) ? document.getElementById( eId ) : false;
}
function lock( value )
{
if ( value == '1' )
{
eId( 'myForm' ).amount.disabled = false;
}
else
{
eId( 'myForm' ).amount.disabled = true;
}
}
function generate( amount )
{
amount = parseInt( amount );
if ( ( amount > 0 ) && ( amount < 60 ) )
{
eId( 'fields' ).innerHTML = '';
for ( var i = 0; i < amount; i++ )
{
eId( 'fields' ).innerHTML += ( i + 1 ) + ': <input type="text" name="fields[]" value="" /><br />';
}
}
}
//-->
</script>
</head>
<body>
<p>
<form id="myForm" name="myForm" action="gosomewhere.php" method="post">
<input type="radio" name="question" value="1" onclick="lock( this.value );" /> Tak
<input type="radio" name="question" value="0" onclick="lock( this.value );" /> Nie
<br />
Ile: <input type="text" name="amount" value="0" size="8" onkeyup="generate( this.value );" disabled="disabled" />
<div id="fields"></div>
</form>
</p>
</body>
</html>[/xml:1:adcb40247c]