Hello,
I'm new to php and I have a question.
I have this form with the following input:
<form>
<?php
linecount = 5
(for x=0;x < linecount;x++)
{
<input type="text" name=input[] value="text1">
<input type="text" name=input[] value="text2">
<input type="text" name=input[] value="text3">
<input type="text" name=input[] value="text4">
}
Then I try to view the results
By doing this:
$inputs = $_POST[input]
icount = $_POST[input]
for ($i = 0;$i < $icount; $i++)
{
$temp = explode(" ",$inputs);
$ti = $temp[0];
}
So basically what I'm trying to do is have the user enter multiple
amount of data using the same fields, then split up the data, and put
it in the individual fields. Also have the array increment to the
next line after the last field.
Any help would be useful.
Thank you.