hi i want to store value of each input text in different arrays how to do that for example store value of input text 1 in array 1 and value of input text 2 in array 2 and so on how to achieve that here is the code for print input text
for($r=1;$r<=10;$r++)
{
echo"<form id='ponts'>
<table>
<tr>
<td>Enter point number$r</td><td> <input type='text' id='pt$r' name='pt$r' pattern='[0-9.]+'/></td>
</tr>
</table>
</form>";
}
name="pt[]"->var_dump($_POST['pt'])inputvalue is a string, not an array. If you want to group inputs in arrays, your values should look likearr1[$r],arr2[$r]with depending on$rvalue;