Well, there are a couple of things wrong here. First, you can't set SERVER variables. They are provided by the server and php can't change them. You probably want $GET[] or $PUT[].
Second, you seem to be confused about the comparsion operator and the set operator.
Use == to compare
Use = to set
if $a is 'No',
($a=='Yes') is false
($a='Yes') is true and $a is now 'Yes'