How do I change the value of a variable based on the input selection of a radio button? Both the variable and radio button are on the same page in the same form. The radio button selects the value for the other variable, so javascript must be used as an onClick to indicate the change. Basically it looks like this: If radiovalue=A, then variable=X, OR If radiovalue=B, then variable=Y. <BR>Can anyone help me out here?