paul Posted November 22, 2010 Share Posted November 22, 2010 i develop a ADMIN tab for edit some new info , and it contain a image need to upload in public function displayForm() ,i add ,but when i submit the form in public function postProcess(),i can't get data from $_FILES ,WHY ?CAN SOMEONE TELL ME.THANK YOU Link to comment Share on other sites More sharing options...
rocky Posted November 26, 2010 Share Posted November 26, 2010 Check to make sure you have instructed your form to send files. For example, use the following: '<form action="'.$_SERVER['REQUEST_URI'].'" method="post" enctype="multipart/form-data">' If your code is the following, then it won't send file information: '<form action="'.$_SERVER['REQUEST_URI'].'" method="post">' Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now