hi!
its simple....just name the textbox as 'firstname[]' ..............this brackets tells its an array........so you will get array of firstname when form is submitted.........
eg...
form.php will be like this
__________________________________________________________________
<FORM METHOD=POST ACTION="submit.php">
<INPUT TYPE="text" NAME="firstname[]"><BR>
<INPUT TYPE="text" NAME="firstname[]"><BR>
<INPUT TYPE="text" NAME="firstname[]"><BR>
<INPUT TYPE="text" NAME="firstname[]"><BR>
<INPUT TYPE="submit">
</FORM>
__________________________________________________________________
and submit.php will be.........
_______________________________________________________________
<?php
print_r($firstname);
/*********
or
**********/
for ($i=0;$i<count($firstname);$i++)
{
echo $firstname[$i];
}
?>
_________________________________________________________________
regards
vaibhav.



--



http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to