Discussion:
Capturing the REMOTE_USER
(too old to reply)
Claus Mygind
2008-10-09 13:47:25 UTC
Permalink
I wanted to capture the remote_user from javaScript instead of dBase.

In my dBase app of course I just code like this

oCGI["WEBUSER"] = getenv("REMOTE_USER")

But that is on the server side. What I want to do is capture that info on
the client side in a js function of the page the user is viewing and send it
to the server as part of the data stream. Is that possible?
Claus Mygind
2008-10-09 14:50:36 UTC
Permalink
I think I get it. Just capture the remote_user before serving up the page

public cThisUser
cThisUser = getenv("REMOTE_USER")

puts([ <input ])
puts([ type="text" ])
puts([ name="UserId" ])
puts([ id ="Userid" ])
puts([ value="]+cThisUser+[" ])
puts([ />])

Loading...