Maarten Martens
New Member
Hello all,
This might be a stupid question, but I'm hopelesly stuck on this thing. So if there is anyone who can help me, please do so!
I'm having a php file where 10 inputs are created. I'm using a "for" statement. The elements are like this <input type="file" name="image<?=i?>" > ... So they are named dynamically using the $i var in the for statement, like image1 imgae2 image3...
I do a method=post of this page. Now I have another php page where I would like to go through this inputs and check what is filled in them. I'm again using a for statement, and go 10 times through it. I would like to check on this inputs, like if ($image.$i != '') ...But thats is not correct. I have tried everything, I just don't know how I can dynamically concat these elements to create a image1 image2 ... How do I plave the $i and the $image creating a image1 where I can check upon?
Please help!!
Thanks,
Maarten
This might be a stupid question, but I'm hopelesly stuck on this thing. So if there is anyone who can help me, please do so!
I'm having a php file where 10 inputs are created. I'm using a "for" statement. The elements are like this <input type="file" name="image<?=i?>" > ... So they are named dynamically using the $i var in the for statement, like image1 imgae2 image3...
I do a method=post of this page. Now I have another php page where I would like to go through this inputs and check what is filled in them. I'm again using a for statement, and go 10 times through it. I would like to check on this inputs, like if ($image.$i != '') ...But thats is not correct. I have tried everything, I just don't know how I can dynamically concat these elements to create a image1 image2 ... How do I plave the $i and the $image creating a image1 where I can check upon?
Please help!!
Thanks,
Maarten