acidbox,
thanks for the reply, but I don't think variable variables answers my question.
I created a check box form NAME of "d"+"field value" inside a for( ) query:
$choice_array[$count] = "<br><INPUT TYPE=checkbox NAME=d".$dept_code." value=1>".$choice_name."";
The ACTION of the above form = choices.php
from choices.php I run another for( ) query of the same table and same field used when I created the check box form.
The number of options for the user are too many to efficiently keep track of "static" variables. Choices.php uses the same table - so it would be easier to create the variable on the "fly" during the for( ) mysql_fetch_row query there.
To find the selected fields of the user, I create if conditions for every row in this column:
if (!$d010 == '')
$ttl_added++;
What I would like to do is generate this same variable in choices.php without overriding the value given to the variable of the same name created in the form. Then use newly created variable to perform the if condition above.
I hope this is clear. I am reading up on the $GET[ ] function now -- don't know if that will help, but can't find the proper syntax for use of $GET in a mysql_query statement. Then again, this may not be of any help either.
Thanks again. Hope this is not too obtuse. Any more ideas?
Turkey