I have a form in which I have the following field : <input class="form-field" type="file" name="photo" />
how I can get the information from this field to be used in a if cycle in php ? if ($photo != '') {
I have a form in which I have the following field : <input class="form-field" type="file" name="photo" />
how I can get the information from this field to be used in a if cycle in php ? if ($photo != '') {
It's in the $_FILES superglobal.
Incidentally, file uploads won't work unless
multipart/form-data
.