Chapter 5:

I'm trying to upload a file to the server as the book does. I've created a form with a file input field but the PHP script can't seem to find $_FILES['screenshot']['name']. I've tried inserting it into a db but only the other fields make it in. If I echo it nothing. The code is below.