Jordi Scharp wrote:
Hey all..
I've got a problem..
Each editbox in a form has his own name..
I've made this name with a counter called
$valuecount which is increased everytime with 1.
So I'm giving them the name val$valuecount,
which will give them names like val1,val2,val3 and so on..
Now when I press submit I want them to write to a textfile...
($key is another string... so I need it to place the $key variable, a = sign,
and then the $val$valcount in the textfile)
So I use this line...
fwrite($fp,"$key=$val$valuecount \r");
But that doesn't work... somehow it can't use a variable in a variable..
Someone knows why and how to solve it?
Thanks!
-Jordi
Are you trying to do an array?
You MUST begin variables with a $ or a &$, I cannot stress this enough.
Michael