Is it possible to use a variable in urlprinter?

You already asked this question and emre already answered.

Just follow that tutorial sending SMS by URL Printer, sorry that tutorial already step by step, couldn’t be clearer than that.