Assume a field labeled 'qr' in a data base, defined as character(6), and with an existing value of '#aaaaa' in local variable $qr.
Assume also a form which, upon submission, returns this array:
([q{1}] => y [q{3}] => y [q{5}] => n [send] => SAVEIT)
I need to end up with $qr = '#yayan'.
To do this I tried:
for($i=1; $i < 7; $i++)
if (isset($POST["q{$i}"])) $qr{'$i"} = $POST["q{$i}"];
... which results in no logged errors, but the value of $qr is unchanged.
What kindergarten level error have I humiliated myself with here?