in reply to substitute the value of a variable

What have you tried so far? If you could post the offending code, it would make it easier to see what's going wrong.

/s