title: Jquery -> php -> mysql and dynamic form fields
body: <p>I have a multi page form which uses multiple tables in mysql for the entered values. One of the pages has a form which needs to have the option of enabling the user to click a + to add an extra line if they want to include extra information. There can be any number of lines added.</p>
  
  <p>When the user clicks the +, jquery and php inserts the current userid in a row in the database table, this is then updated when more information is entered.</p>
  
  <p>The problem I've got is to how to insert any number of rows for that particular id - when the data is entered, a blur event sends the data to the php code for updating the database. However, the problem I have is that it will update ALL the rows with that particular user id and not the current one. </p>
  
  <p>What would be the best way of taking the data entered on the new rows and updating the database - I assume that I will have to use the ID value rather than userid value as that will be unique, or is there another way of doing it? </p>
  
  <p>Thanks for any suggestions you can give, this one is clouding my mind currently...</p>