Guest User

Untitled

a guest
Nov 21st, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Choose a file to upload: <input name="uploadedfile" type="file" />
  2. <br />
  3. Username:<input type="text" name="username">
  4. <br />
  5. Password:<input type="text" name="password">
  6. <br />
  7. FaxNumber:<input type="text" name="faxnumber">
  8.  
  9. <input type="submit" value="Upload File" />
  10.  
  11. if ($_FILES["file"]["type"] == "image/gif"){
  12. //do stuff here
  13. }
  14. else{
  15. //the file was wrong type handle error here
  16. }
  17.  
  18. $_FILES['yourFileName']['type']
  19.  
  20. by default: nearly anything you want (pdf,txt,exe,jpg) etc.
Add Comment
Please, Sign In to add comment