Neil
10-30-2002, 09:42 AM
I have now got the IP address extraction working with help from many of you, thanks.
Now I need to get the derived URL address into the web page itself. The code I used to start with is:
<%
Dim Full_Ip, Part_IP, Specific_URL
Full_Ip = request.servervariables("remote_addr")
Part_IP = Left(Full_IP,7)
if Part_IP = "10.99.7" then
Specific_URL = "site1.htm"
end if
if Part_IP = "10.99.3" then
Specific_URL = "site2.htm"
end if
if Part_IP = "10.98.3" or Part_IP = "10.98.4" then
Specific_URL = "HeadOffice.htm"
end if
response.write(Part_Ip)
response.write(Specific_URL)
%>
Now that we have been able to identify the site and define the correct webpage to display. I now need to setup a hyperlink to go to the correct page.
Within the body of the page I want to try and do something like this:
<p><a href="Specific_URL"> Your Site Information</a></p>
</body>
However, How can I get the VBScript value in Specific)_URL to be used within the HTML?
Thanks in advance,
Neil
Now I need to get the derived URL address into the web page itself. The code I used to start with is:
<%
Dim Full_Ip, Part_IP, Specific_URL
Full_Ip = request.servervariables("remote_addr")
Part_IP = Left(Full_IP,7)
if Part_IP = "10.99.7" then
Specific_URL = "site1.htm"
end if
if Part_IP = "10.99.3" then
Specific_URL = "site2.htm"
end if
if Part_IP = "10.98.3" or Part_IP = "10.98.4" then
Specific_URL = "HeadOffice.htm"
end if
response.write(Part_Ip)
response.write(Specific_URL)
%>
Now that we have been able to identify the site and define the correct webpage to display. I now need to setup a hyperlink to go to the correct page.
Within the body of the page I want to try and do something like this:
<p><a href="Specific_URL"> Your Site Information</a></p>
</body>
However, How can I get the VBScript value in Specific)_URL to be used within the HTML?
Thanks in advance,
Neil