Closed IMP1 closed 9 years ago
This is now a two-stage form. The first stage is the user address and the user's basic information. The second stage is the credit card and billing address (with a checkbox to use the previous address - rendering those inputs disabled).
The session hold information on the user and the user's address while the 2nd half is carried out, and only the user's address is added to the database before the final stage. The final stage adds the credit card to the user, and then adds the user to the database.
For logging in:
session.logged_in_user = request.vars.username
Addresses are being duplicated.
Working creation of the three tables, with the credit card referring to an id of an address, and the user referring to both the id of an address and the id of a credit card.
Splitting of certain table values across two (or more) html input tags.
Registering then proceeds to log the user in (however this is done in web2py).