PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm working on a members profile => My members can add a music profile of them with personal info, music info, songs info.
I have some problems with Songs info i want something that users can unlimited songsinfo(track name, Url, Song Info). Anyone an advice how i can fix this so when users register they get the chance to add in their Profile unlimited songs info. Like Song1, Song2, Song3.
But how can i fix this in the form? because i don't know how much songs they have. I can not add like 10 fields or 20 fields. Is their maybe a solution for this?
Or get them to enter how many songs they want to add first and then dynamically create that number of fields. Name then by an array.
Or have a text box and get them to separate the songs by the # or something and then explode the variable into an array before adding it to the database.
I will try it but i think have to integrate javascript on it because it has to be on realtime. So when they see the form they can add it into the database but without going away from the form?
As far as I know you can't add to mysql from js. Why don't you make the form action to the same page? That way you can insert the data then reload the form with a select statement.