I have a lists of html select boxes say 30. I need to give a option for a user to browse a file, where he would have stored the values of these select boxes. once he selects a file, i need to show the value in corresponding select boxes.
- Do i need to store this file on server and read the file?
- i have idea to ask to user to store the files in .ini format so that i can parse the file and do it. any other way ?
The file will be stored on the server automatically on POST, although temporarily. You can read the temporary file directly (i.e.: $_FILES[‘myfile’][‘tmp_name’]) without having to use move_uploaded_file(). This way you don’t have to worry about garbage collection either.
INI works, so does XML.