Hmm. Yeah, that works. Odd... I can't imagine why it would create the name of the var on the fly like my example.
I guess for everytime I will need a dynamic name, I will have to "create the FULL name" right before I try to hit the var of that name by using the $$.
Eeek... talk about doubling your code for no good reason. Like original code of:
$tid_q = addslashes($tid$n);
$name_q = addslashes($name$n);
$toollink_q = addslashes($toollink$n);
$listorder_q = addslashes($listorder$n);
(the above gives parse errors)
ends up looking like:
$DYN = "tid".$n;
$tid_q = addslashes($$DYN);
$DYN = "name".$n;
$name_q = addslashes($$DYN);
$DYN = "toollink".$n;
$toollink_q = addslashes($$DYN);
$DYN = "listorder".$n;
$listorder_q = addslashes($$DYN);
(the above actually WORKS, buts its ugly)
Imagine that junk in a FOR loop setting up POST data to be inserted each into a database. Thats a mild example of where I use dynamic referenced vars.
Thanks for the tip though! At least I can get it working in limping fashion ;-)
SOME things I am able to convert to arrays (using the empty square bracks in FORM NAME settings)... however some are just 'too' dynamic to convert to arrays effectively without creating about 5 times the code for something so basic.