Forum Moderators: coopster

Message Too Old, No Replies

sessions

different $names

         

maize

6:05 pm on Jul 24, 2005 (gmt 0)

10+ Year Member



I am using sessions throughout my forms. But when I get to the credit card processing and the online check processing, they use a different value for identifying the customer.

ie...credit card processing uses $customer
online check processing uses $billCustomer

my database identifies the customer as $user

so when I get to that final page when the $user has successfully paid, I get

$customer = 'customer'

and I need the value to my database to be $customer = 'user'

how do I change the value names?

mcibor

8:58 pm on Jul 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't quite follow...

Why can't you simply have $_SESSION["user"] with user and copy that to $_SESSION["customer"] if you need it?

You shouldn't be using regiser_globals on as well, as it is quite unsafe!

Best regards
Michal Cibor

And welcome to WebmasterWorld!

maize

9:36 pm on Jul 24, 2005 (gmt 0)

10+ Year Member



I did figure it out. I don't know php, and didn't understand that the value of $anything can be anything!

thanks

mcibor

9:52 pm on Jul 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Glad to be of no help! :)

I learned php two years ago, so it's not really so hard
Michal