Hey again people 😃,
I've posted every snag until now and I've not been let down - So I hope more helpful people will be of erm... help I guess when I ask this.
I'm optimizing a small program I wrote a while ago and forming it into functions and such - generally making it more customizable etc. on to the problem:
I'm trying to shorten down a listing which calls on a few vars... Basically I need to write the exact same line 6 times with the tiny exception of 2 words... each time it relates to a different variable. One line would look like this for example:
<input type=hidden name=id value=$id2>
I've assigned all the different vars I wish to respond in an array and I'm just going through them with a "for" loop - but I hit a snag at the $id2 place. I don't want it to actually say $id2 - I want php to put in the var named $id2. But when I assing a var with the string $id2 it of course only prints $id2 as I see in the source... Any ideas?
Thanks in advance 😃
Gazoo