Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1768 How can I accesss the CGI variable REMOTE_USER from JavaScript?

irt.org | Knowledge Base | JavaScript | Misc | Q1768 [ previous next ]

Q1768 How can I accesss the CGI variable REMOTE_USER from JavaScript?

The following works only in you use CGI to output the REMOTE_USER value in the HTML back to the browser:

<p align=center>
<br>

<font size="4">You are logged on as

<script type="text/javascript">
user = "<!-- #echo var="REMOTE_USER" -->";
document.write("'" + user + "'")
</script>

</font>
</p>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.