So I have a 2 page registration page where on the first page the user inputs all his/her data and then clicks continue. On the 2nd page, they choose certain options and then click continue there, this will then take them somewhere else where their payments can be handled (not related to me at all).
I also have a Insert.php file that simply inserts all the user's data into the database. When clicking submit on page2, it actually redirects them to Insert.php, which inserts and then redirects them to the external payment page. I had to do this because for some reason the ajax call just wouldn't work.
My question is, what if right after they click submit on the 2nd page, their computer crashes or they close the browser? Will mysql understand that the connection has been terminated and not save anything or will it save partial data (as much as it could before the user crashed), and if so how do I delete the partial data?
At this point I'm just trying to do as much error handling as I can to prevent any serious problems down the road.