I hope that you can all bear with me because this is my first time coding in PHP. There is also some javascript (first time with that also) so I apologize in advance that some of the issues might be javascript related.
The web app that I am creating (and this is purely for me and a learning process) will read a CD's TOC from the client CD drive (using the CDDB interface) and then store this information into a MySQL database. Other parts of the app will let you modify data, query data and do some reporting. So far I have manged to code the part that reads the CD TOC and return the CD information and the CD tracks. The part that reads the CD is in javascript. I have a submit button that posts to the same form and will save the record to a MySQL database if it doesn't exist already.
Here is the part that I am struggling with. The CD tracks are passed back to a list box but these values are not being posted, and perhaps this is standard HTML. The reason that I am storing the tracks in a list box is because I also want to be able to edit a track in case of spelling mistakes, and if I can do it, to also play the selected track and, if I get very adventurous, to rip the track into MP3 format. Anyway, how can I post back all the values in a list box or is this not possible? If this is not possible then what is the advised way to do this? Put the concatenated list of tracks into a hidden text box and then de-concatenate them after the POST?
I hope that I have explained myself adequately. If there are any questions then please, fire away.
My code (please, I know that it is messy right now, this is early days so go easy on me) is as follows: -
(Was too large to cut and paste...attached as a txt file)