
October 12th, 2012, 08:00 PM
|
|
Contributing User
|
|
Join Date: Jan 2004
Location: Budapest
|
|
|
How do I make dynamically name session variables???
I want to create a group of session variables and have searched all over the net on how to name them dynamically.
I have a template website that has a table of clients that own businesses. Most clients have 1 business, but some have multiple businesses.
I am hoping to create a set of session variables that would hold a string (tel. number).
So it would look something like this:
session("tel1") = "494 999 9999"
session("tel2") = "394 994 3938"
session("tel3") = "494 999 9928"
I thought I could create a counter equal to the number of businesses, and as I looped through dynamically name my session variables..
but something like
var varx = "tel" & counter
session(varx)
does not work.
Can someone please help me?
__________________
Today the world, tomorrow the universe...
|