I dont know how good of an idea it is to have 180 variable variable names. oi,
headache. but the question you asked was this.
" $q = 'tar1-1' how do I access the variable $tar1-1 "
no problem
echo $$q;
--
Chris Lee
[EMAIL PROTECTED]
""Per Kallin"" <[EMAIL PROTECTED]> wrote in message
98va5j$3lp$[EMAIL PROTECTED]">news:98va5j$3lp$[EMAIL PROTECTED]...
Hi!
I have a quite big form to fill out a calendar. The form has six fields for
every day in a month to make it possible to set up tree apointments (the
target of the meeting and Locataion), this makes a total of about ~180
fields so I created them with a for-loop.
Now I got this 180 fields named tar1-1, loc1-1, tar2-1, loc2-1 a.s.o. where
the first tree letters tells what information it is, the 4th witch meeting
it is (1-3) and the digits after the minus-sign tells the day of the month
(1-31)
The problem is to get the value out of the variable so i can store it in my
mySQL database. it no problem to create a variable that holds the name of
the variable that contains the data, but then??? The value of the variable
$q is 'tar1-1' and I want to access the variable $tar1-1.....
I can't find any way to solve this, can you? Someone most have created a
calendar like this before...
Please respond to [EMAIL PROTECTED]
/Per Kallin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]