Page 1 of 1

Populating a form with session info

Posted: Tue Mar 01, 2005 7:35 pm
by thumbslinger
Hi there-
Real newbie here.

Here's the situation. A user signs up for access by filling out a basic form and receives the password/login info.

So now he's shopping, wants to make an order.

We want the form to be filled automatically with the information the user originally entered so that upon future returns to the site, going to the order form, it will already be filled out with the basic info (name, address..etc)

Conceptually, I thought of creating a text file that would be created automatically at registration and using that in a header, but I'm wondering if there is cleaner way?

Posted: Tue Mar 01, 2005 7:59 pm
by feyd
there are cleaner.. and far safer ways.. namely, storing the information in a database.. I'd highly suggest to never automatically fill out their credit card information.. or even store it.. it's too sensitive and dangerous of information for most sites to be able to handle safely..

Posted: Tue Mar 01, 2005 9:16 pm
by PrObLeM
You can’t store the cc info unless you want to be audited for security and such by the cc company and if you store it and they find out you can get in a lot of trouble

Posted: Tue Mar 01, 2005 11:14 pm
by thumbslinger
Make sense. Seems I misunderstood what was needing to be accomplished. A shopping cart script is being used, but not for commerce. The structure of the script is being utilized to simply keep track of items viewed from a database as well as show items that relate to each other.

So, it's really just a means of sending pre-established registration info when a user clicks "Get more info" and it's all behind the scenes so that the receiving party knows the name/phone number of the interested person without having them have to re-enter that info.