Its not possible in javascript afaik.

The remote address must come from the server serving the page.

HTH
----- Original Message ----- 
From: "geoffcox75" <g...@freeuk.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Monday, July 13, 2009 8:44 AM
Subject: [Proto-Scripty] Re: getting REMOTE_USER from the headers?





On Jul 13, 8:22 am, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:
> Use php to get $_SERVER['REMOTE_ADDR'];
>
> No need to complicate matters

'just curious to see how to do this...

Cheers

Geoff

>
> ----- Original Message -----
> From: "geoffcox" <g...@freeuk.com>
> To: "Prototype & script.aculo.us" 
> <prototype-scriptaculous@googlegroups.com>
> Sent: Monday, July 13, 2009 8:20 AM
> Subject: [Proto-Scripty] getting REMOTE_USER from the headers?
>
> > Hello,
>
> > I am using Ajax.Request and the nms version of formmail to send a
> > form's contents. I would also like to send the REMOTE_USER value which
> > I can do by inserting some php into the file but have been told that I
> > can "pull the user from the headers when the user calls your AJAX
> > routine on the server".
>
> > How do I do this?!
>
> > Thanks
>
> > Geoff



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to