Use "persistent forms" to store all of the data from the 6 pages and then do the data recording all at once on the last page using the stored values.
You can't use mysqli transactions across multiple pages in general, and you can't use transactions in general without hand coding, but this technique should be a good enough equivalent.