title: Where does php code go when uploading files
body: <p>I am following a step by step guide on W3schools website on how to upload a file. The only thing I don't understand is where does the php code go because if I try to put them below the html then I get notices stating "file" is undefined.</p>
  
  <p>Does anyone know where the php code goes? If somebody could provide a sample of the layout of the code from W3schools then it would be very helpful. I want to see what it all is supposed to look like but I keep getting notices.</p>
  
  <p>Click <a href="http://www.w3schools.com/php/php_file_upload.asp" rel="nofollow">here</a> to view the file upload steps on the W3schools website.</p>
  
  <p>Thank you</p>