Click to See Complete Forum and Search --> : Passing SSI Variables


Erv
12-02-2003, 05:57 PM
I am using the following code to generate the user's Ip address

<script>
<!--
var ipAddress = <!--#echo var="REMOTE_ADDR" -->;
//-->
</script>

But I can't seem to get my Javascript to recognize the variable ipAddress.

when I veiw the source fromt the page I just see the result of the SSI command not " var ipAddress = [ipaddress]"
The var ipAddress is not even in the statement on the source.

So.... How can I pass an SSI result to a variable in Javascript and then use that variable in a Javascript command?

What I'm trying to do is gather the IP and Host name info to be included in an email form for work on our helpdesk so we will have info that the usrs seem to never provide even when asked. The reason I am looking to use the SSI is because of IE browsers.