I guess, I haven’t explained it well, leme try again,
Lets suppose I am a user visited a page
and filled a form and the data is submitted and inserted into database, now each time form is updated; the db entry will be updated as well by the help of mysql_insert_id;
after the first entry to the database, if the user refreshes the page; and try to submit the data again,data should be stored in same row rather than inserting new row in the db.