FES Germany
Apr 7th, 2006, 01:26 PM
I have a form with several Textboxes, I send this form to another page using get.
Is it possible to get the values of the form into an array.
<form method=get action=next.php>
<table border = 0>
<?
for($i=1; $i<=$anzahl; $i++){
echo ("<tr>");
for($z = 0; $z <= $anzahl; $z++){
echo ("<td> <input type=Text name=test value=0 size=3 maxlength=4> </td>");
}
echo ("</tr>");
}
?>
</table>
<input type=Submit name=aktion value=Rechnen>
</form>
The problem is that the array should be two dimensional and that the size depens on $anzahl.
I thought of doing something like
<input type=Text name=test$i$z value=0 size=3 maxlength=4>
but i hope that there's an easier way. Plz help!!
FES Germany
Is it possible to get the values of the form into an array.
<form method=get action=next.php>
<table border = 0>
<?
for($i=1; $i<=$anzahl; $i++){
echo ("<tr>");
for($z = 0; $z <= $anzahl; $z++){
echo ("<td> <input type=Text name=test value=0 size=3 maxlength=4> </td>");
}
echo ("</tr>");
}
?>
</table>
<input type=Submit name=aktion value=Rechnen>
</form>
The problem is that the array should be two dimensional and that the size depens on $anzahl.
I thought of doing something like
<input type=Text name=test$i$z value=0 size=3 maxlength=4>
but i hope that there's an easier way. Plz help!!
FES Germany