Php's $_files["file"]["name"] Not Functioning Properly
Last time I asked a question here I messed up but I think I got it now. Please let me know if I can ask better :D I am using an HTML form with PHP and am trying to get a file name
Solution 1:
You're missing your enctype="multipart/form-data"
attribute in your <form>
tag. Without it the file will not upload.
<form enctype="multipart/form-data" role="form"
class="form-horizontal" action=<?php echo $_SERVER['PHP_SELF']; ?> method="post">
Post a Comment for "Php's $_files["file"]["name"] Not Functioning Properly"