Jordan wrote:
If you want to have all of the values in a single array and reference them in the manner you describe, simply give all of your form fields the same name ending in
Thus, each field with the name emp[] will have its value added to the array $emp[].
note that automatic numbering starts at 0.
an alternative:
if you name the inputs
inp1
inp2
inp3
etc.,
you still can process them in a loop using variable variables:
for($i=1; $i<=$totalnumberofinputs; $i++)
echo ${"inp".$i};