I've just installed EasyPHP 5.3.6 (Windows) and created a small webpage to upload a file.
However, the $_FILES command seems not to work. Any idea?
Here is my html:
Code: Select all
<form action="bb2.php" method="post" name="form1" enctype="multipart/form-data">
<input type="file" name="form_lettingsphoto1"><br>
<input type="submit" value="ADD LETTING" name="form_lettingssubmit">
</form>
Code: Select all
<?php
print '<pre>';
print_r($_FILES);
print '</pre>';
move_uploaded_file($_FILES['form_lettingsphoto1']['name'], 'toto.jpg');
?>
print_r($_FILES) doesn't return anything and the file I parse through the html page is not copied into the new folder.
Thanks.
Best regards.