Asked this before but perhaps I was not clear enough.

I have a form whereby the data needs to be input into a MySQL database in the row in the table where the previously stored cookie id in the MySQL table matches that on the users computer.

I know how to write a form. How do I post it to a MySQL database and have the data entered in the correct row (by checking the cookie id matches)?