Hotspot html - can I use\get router variables from other scripts?

Hello,
I’m intresting of getting some more data when a client is connect to my hotspot
some saved information about the router

the reason is - I have 10 routers with the same configuration
the only different is the IP on the WAN the router is connected to

so is there any way to add it to the html I’m sending in connection?
this is what I’m using now

					<input type="hidden" name="ip" value="$(ip)">
					<input type="hidden" name="username" value="$(username)">
					<input type="hidden" name="error" value="$(error)">
					<input type="hidden" name="chap-id" value="$(chap-id)">
					<input type="hidden" name="chap-challenge" value="$(chap-challenge)">

					<input type="hidden" name="mac" value="$(mac)">
					<input type="hidden" name="link-orig" value="$(link-orig)">

the reason is - I want to know from wich router the user has connected

Thanks ,