<?php
function form($n)
{
echo "<Form action="ir5.php" method="post">";
for ($i=0; $i<=$n; $i++)
{
echo "<input type="text" name="p"$i>
<input type="text" name="n"$i>
<input type="text" name="t"$i>";

}
echo "<input type="submit">";
</Form>
}
form(5);
?>
