I have a file input field named mainpic.
$main = strtolower($_FILES['mainpic']['name']);
$main is continually blank. if i do a foreach on $_FILES it says mainpic is an array but if i try to foreach mainpic it errors out. I have the correct enctype and everything. The shortcut i usually use did not work either.
$main = $mainpic_name;
It's working on my other sites so I'm going pretty nuts. Any ideas?