I have 7 variables...each vriable is having either of two values "0" or "1"
e.g. a=0, b=1, c=1, d=1, e=0, f=1, g=0
Now I need the total of all these 7 variables but only which are having value "1" (in the above case b+c+d+f)
My problem that it's dynamic...i.e everytime on submitting the form...these value will be different (0 or 1), how to check everytime???
I hope, I could explain my problem