paramasivan Posted December 6, 2006 Share Posted December 6, 2006 Uploading a a file through an file element which having only id not name ie) input type='text' id='text_email'my attempt using $_SESSION['text_email']['name'] was useless. Link to comment Share on other sites More sharing options...
sivakumar Posted December 6, 2006 Share Posted December 6, 2006 Use $_FILES['text_email']['name']It will work... Link to comment Share on other sites More sharing options...
paramasivan Posted December 6, 2006 Author Share Posted December 6, 2006 [its working with giving name with input tag of type file.not on id'ed input tag.Any possibility only with id of input tag. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 6, 2006 Share Posted December 6, 2006 Why are you using $_SESSION to read the file instead of $_FILES?If you are using $_FILES, with an id and not a name, and it doesn't work, then use a name. 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