I am playing with an uploader on PHP. Basically, I did a simple one just for echoing what is chosen from submit button for right now.
<? php
echo $name = $_FILES['file]['name'];
?>
<form action="upload.php" method="POST" enctpe="multipart/form-data">
<input type ="file" name="file"> <br> <br>
<input type="submit" value ="Submit">
</form>
I am using xampp and where I located this file is in a folder in htdocs. apache is running, PHP is running without hesitating whenever I refresh
It just doesn't work and not echoing choosen file name.
Can you tell me what, actually, is wrong with it?
phpex/upload.php? And is this page in thephpexdirectory?$_FILES['file]['name'];. Secondly: removeaction="upload.php"<?phptagerror_reporting(E_ALL); ini_set('display_errors', 1);