Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extracting IP address 2

Status
Not open for further replies.

CatrinaMichele

Programmer
Oct 3, 2000
1
US
I recall seeing a snippet of code somewhere that allows forms to extract the user's IP address. I need to be able to extract the IP addy and have that info emailed to me along with the rest of the user information.

Anyone have that snippet of code handy?

Many thanks,
-Catrina [sig][/sig]
 
You can use the variable CGI.REMOTE_ADDR to get the users IP address. This variable is always populated so all you need to do is reference it:

<cfoutput>
IP Address: #CGI.REMOTE_ADDR#
</cfoutput>

Hope that answers your question!
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top