I need to track which site consultants are registering from, we have three
sites each with the following consultant login button attached that passes the
URL as a variable and inserts it into the database.

class="consultlink"><font color="##3366CC"><b>Consultant

The problem is that when I publish any page using contribute the
#CGI.SERVER_NAME# variable is replaced with the hard coded URL value. My
development sites all begin with a devwww.grm.com.au so are incorrect. Does
anyone know how you can avoid this problem???