I have build a form on php page and on this form there is a table which users can add and remove rows to dynamically (I enabled this by javascript code) there are fields in this table users fill them with data, and I set the action for this form to go to a process script in php (proc.php).

The question: I want to collect all the data in these fields (in the dynamic table) and insert them into mysql database, how can I figure out how many rows users add to the table and insert data in and how can I go through each row and collect the data from.

Thanx in advance for any help,