[eluser]Smalbach[/eluser]
in php
file1.php
Code:
<form action="file2.php" method="post" >
amount of fields
<!--type the amount of field that you want to display in the nest form -->
<input type="text" name="amount">
<input type="submit" value="Generate">
</form>
file2.php
Code:
<?php
//get te parameter
$amount=$_POST['amount'];
//make a cycle
echo "<form action='other_file'>";
for($i=0;$i<$amount;$i++){
?>
<br>
field <?php echo ($i+1) ?>
<input type="text" name="field_name<?php echo $i ?>">
<?php
}
echo "</form>"
?>
you can integrate with codeigniter
but I recommend you to do it with jquery, is more attractive
@solounaverdad