Consider the following code:
Code: Select all
while($z<6){
if($_FILES['image'.'$z']['name']){
do something
}
$z++
}As you can see i am trying to concatenate the the variable $z to the 'image' string in the file variable name. ie:
image1
image2
and so on... Is this possible.
Thanks in advance,
Rob.