Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session info into email???

Status
Not open for further replies.

DaRNCaT

Technical User
Joined
Dec 18, 2002
Messages
566
Location
NZ
How can I get the information from a SESSION (it's a shopping cart) into an email?
I tried implode and I got the number of items ordered, I tried explode, and I got "array" I'm sure I'm missing something obvious here!

Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
DaRNCaT,

There is no difference between accessing a SESSION variable to accessing any other variable.

If you don't know the structure of the SESSION vars and what they contain you might want to inspect them first in order to see what is actually stored.
Just do a
Code:
print_r($_SESSION);
Look at it in the source code view of the browser. It will show you what is where.

You can then access the elements by their keys and assemble any text/message you want for your e-mail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top