I want to upload a photo into a MySQL Database. My PHP version is 4.3.3.
The problem is that I cannot get the variable with information about the file which is selected by the user.
//Input page
<input type="file" name="foto" value="">
//Action page
!isset($REQUEST['foto']) ? $foto=$REQUEST['foto'] : $foto = $_REQUEST['foto'];
When I do print_r($foto) it says Array ( [name] => )
It doesn't matter when I replace $REQUEST with $POST.
With PHP version 4.2.3 it's working okay.
Do you have a solution?
Thanks in advance