IMP1 / iapt1

Interactive web design project for IAPT module in 3rd year Computer Science degree at Univeristy of York.
0 stars 0 forks source link

User Registration Page #6

Closed IMP1 closed 9 years ago

IMP1 commented 9 years ago

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).

IMP1 commented 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.

IMP1 commented 9 years ago

For logging in: session.logged_in_user = request.vars.username

IMP1 commented 9 years ago

Addresses are being duplicated.