Populating a form with session info

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thumbslinger
Forum Newbie
Posts: 2
Joined: Tue Mar 01, 2005 7:30 pm

Populating a form with session info

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post 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
thumbslinger
Forum Newbie
Posts: 2
Joined: Tue Mar 01, 2005 7:30 pm

Post 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.
Post Reply