Following tutorial: Design a Multi- Page Form in WordPress by Justyn Hornor and....?

I have a couple of questions relating to this sitepoint article: http://www.sitepoint.com/design-a-multi-page-form-in-wordpress-multi-page-processing/

In the tutorial every time i log in and submit a part of the form a new row is inserted and not the same row is updated. So how do i make sure a logged in user only has one database row for his form. I am also wondering if the structure of shopping_preferences table is correct, shouldn’t there be a field with a user’s wordpress (WP) id? In other words how do i correctly limit the query?(http://www.sitepoint.com/design-a-multi-page-form-in-wordpress-multi-page-processing/)

2nd question in my case i have 10 steps and every step can be saved and after relogin an user can go further where he left off. After each of the 10 steps has all the required fields the form will be submitted.

  • how can i browse between steps (browse the seperate forms)
  • how can i add a button which reads “next step” if all the required fields are already correct (say step2).
  • should i use wpdb->insert or wpdb->update

Any other tips or suggestion are more then welcome.

regards