Hello !

I have a database that shows about 5 to 10 recorrds on a page that contain forms for the user to fill out. The number of rows is unknown and depends on the user query.
On the page there can be 2 or 10 records displayed ..each containing a form that needs to be validated.

How can i use that. The IDs of the elements would have to be generated dynamicly i suppose. Anyone of you got an idea how to do that ?

Thank you in advance
Peter

Recommended Answers

All 2 Replies

You can associate uniqueness of element ID with the number of form you are creating (1, 2, ...). If you are using database data, you can use the ID of your data to cooperate (not plainly use but concatenate to a string) with the element as an ID as well because the ID of your data should be unique.

Thanks for the help. I will give it a shot tomorrow ..

Cheers
Peter

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.