Hi,
I need some help with this. I am submitting values through a form. The form has a field called field1, field2, field3 etc but the number fields is not fixed and this is of type file. That is it can vary from field1 to field10. Im using javascript to generate this on the form.
How do I collect this value on the form action page using a loop.
Example :
FORM PAGE
<form name="someform" action="actionpage" method="post">
<input type="file" name="field1">
<input type="file" name="field2">
<input type="file" name="field3">
<input type="file" name="field4">
<input type="hidden" name="no_of_fields" value="<?php print($number);?>">
</form>
ACTION PAGE :
I can do this if the number of field is fixed
print($field1_type);
print($field2_type);
print($field3_type);
print($field4_type);
but since it is a variable how do i do this using loops ??
for ($i=1;$i<($number+1);$i++){
print(????);
}