So this may be easy but I can't figure it out. I have a file field and the name is set dynamically with a variable. I need this name to be an array using $Var[] so that the user can select multiple files. When I try the following I keep getting errors:
"<input id='$Var' name='$Var[]' type='file' multiple/>"
"<input id='$Var' name='$Var".[]."' type='file' multiple/>"
"<input id='$Var' name='".$Var."[]' type='file' multiple/>"
I have tried all three of the above and keep getting errors. When I remove the variable and just type in the field name it works fine.
"<input id='File' name='File[]' type='file' multiple/>"
Not sure if need to escape something or what. Please help and thank you.