php - Account creation review step - post form validation -


i have question has been bugging me quite while now. working on project has form tied payment gateway. form validated , once valid after user clicks 'sign up', credit card number automatically charged (without review).

i trying add intermediate step pretty summary of amount going charged , information going used account creation. debating between 2 approaches:

1) post data posted additional page before account created (and credit card charged), page if information correct (in users eyes), users click sign , account created - require re-posting variables or creating session variables...

2) use javascript hide form 'on submit', , show hidden, review container, using javascript, set html fields of hidden review screen before showing it, here when user confirms information correct, account created / credit card charged, , did without session / reposting of variables.

however, noticed lot of websites tend use approach number 1 above. wondering why this, , approach number 2 decent way tackle problem?

i appreciate advice, many in advance!


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -