Posted by Garry Jones on 10/03/06 22:33
I need to nest a variable into a variable name. Having problem with syntax
Simply put
$dtet is "col"
and $dn can be "blue" or "red"
How do I get the following to work?
$dtet+$dn = $_POST["dtet$dn"];
So that the result is either a variable called '$colblue' with a value of
'colblue' or a variable called '$colred' with a value of 'colred'
Thanks for any help in this matter.
Garry Jones
Sweden
Navigation:
[Reply to this message]
|