Well this might sound a bit ridiculous , i request the user to enter the no of names field to be generated and then i am successfully able to generate , but dont know how to go about saving those many names in the name column of my db.
initial html page
<form action="redirect.php" method="post">
Name: <input type="text" name="yourname" maxlength="150" /><br />
<input type="submit" value="Submit" style="margin-top: 10px;" />
redirect.php page
$val = $_POST['yourname'];
for ( $i = 0; $i < $val ; $i++)
{
?>
<form action="redirect1.php" method="post">
Name: <?php echo $i+1 ?> <input type="text" name="yourname[]" maxlength="150" /><br />
<?php
}
?>
<input type="submit" value="Submit" style="margin-top: 10px;" />
well i thought i would print the various names entered in redirect1.php and save it in db , any other ingenious ideas are welcomed /