Is this task Posible?

To make a variable affect another variable using only client side tools... or any other method to a server side script....

<%variable= "Select * from t where id = " % variable1 %>

how to convert "variable1" into "variable"....