How to I count the number of <option>, or any tag, with PHP?

  • Thread starter Thread starter Tom B
  • Start date Start date
T

Tom B

Guest
Using PHP I am looking to count the number of <option> tags.
I have a list of all my music, some 2,000 song. I cannot use PHP in the directory (host doesn't support) so ignore that
But I managed to generate a list of all this files and now have a long option list with all the songs
I want to know how to take each <option> and turn it into <option value="+1">, so that I can have each change the value of something and have my Java MP3 player play the selected song
thanks
 
Back
Top