jushiro Posted October 5, 2011 Share Posted October 5, 2011 I've got some code here.. <form method="post" enctype="multipart/form-data" action="upload.php"> <label for="lesson">LESSON NAME: <input type="text" name="lesson" id="lesson" /></label><br/> <label for="pdf">LESSON NAME: <input type="file" name="pdf" id="pdf" /></label><br/> <input type="submit" name="submit" value="UPLOAD" /> </form> hmmm.. How can i get the value of "pdf"? ive tried to this echo $_POST['pdf']; but it doesn't show the value.. Someone Help pls.. Link to comment https://forums.phpfreaks.com/topic/248480-getting-value/ Share on other sites More sharing options...
bh Posted October 5, 2011 Share Posted October 5, 2011 <input type="file" and you want to get $_POST['file'] ??? are you sure? update: try to get $_FILES['file'] // var_dump($_FILES['file']); Link to comment https://forums.phpfreaks.com/topic/248480-getting-value/#findComment-1276018 Share on other sites More sharing options...
PFMaBiSmAd Posted October 5, 2011 Share Posted October 5, 2011 Please read the first three sections of the php.net upload handling documentation - http://us.php.net/manual/en/features.file-upload.php Link to comment https://forums.phpfreaks.com/topic/248480-getting-value/#findComment-1276019 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.