<?php
if (!empty($_POST))
{
echo '<pre>', print_r($_POST, 1), '</pre> <hr />';
}
$input_template = '<input type="text" name="roomtype[%d]" value="%d" /><br />';
$cnt = (int)@$_GET['cnt'] or $cnt = 5;
$inputs = '';
for ($i = 0; $i < $cnt; $i++)
{
$inputs .= sprintf($input_template, $i, $i*5);
}
?>
<form method="post" action="">
<?=$inputs?>
<input type="Submit" value = "Да! Сделай это!">
</form>