Dr-SeMSeM Posted February 7, 2010 Share Posted February 7, 2010 Hi all , i have a problem and need expert advise currently i`m creating simple upload form ..the problem that the form dosn`t read any information about chose file here are the code below <?php $tmp_name = $_FILES['file1]']['tmp_name']; $type = $_FILES['file1]']['type']; $Name = $_FILES['file1]']['name']; $size = $_FILES['file1]']['size']; echo $tmp_name ; echo $type ; echo $Name ; echo $size ;?><form name="" action="" method="post"> <input name="file1" type="file" > <input type="submit" value="Send"></form>advise please .. i`m working on php5 . Link to comment Share on other sites More sharing options...
Synook Posted February 7, 2010 Share Posted February 7, 2010 Your field isn't called file1] - it's just file1. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 8, 2010 Share Posted February 8, 2010 Make sure your form has the correct enctype also:http://www.w3schools.com/php/php_file_upload.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.