dreamwest Posted November 1, 2009 Share Posted November 1, 2009 I just did an ajax image upload script and found it strange how $_FILES was treated. Form <form action="/red_upload.php" method="post" enctype="multipart/form-data"> Nickname: <input type="text" name="nick" value='' /> <input type="file" name="file" /> <input type="submit" name="submit" /> </form></nobr> upload.php echo $_FILES['nick']; // heaps of code here.... echo "Thankyou {$nick} your upload is completed"; which outputs the value of the nickname...but ive already echoed the files value at the top of the script but its showing up at the bottom $nick variable "Thankyou Potter your upload is completed" Why is this?? Link to comment https://forums.phpfreaks.com/topic/179868-question-about-_files/ Share on other sites More sharing options...
redarrow Posted November 1, 2009 Share Posted November 1, 2009 Nickname: <input type="text" name="nick" value='' /> <<< echo's this correct? Link to comment https://forums.phpfreaks.com/topic/179868-question-about-_files/#findComment-948859 Share on other sites More sharing options...
dreamwest Posted November 1, 2009 Author Share Posted November 1, 2009 Yes it echos the value of nick Link to comment https://forums.phpfreaks.com/topic/179868-question-about-_files/#findComment-948872 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.