Print Page | Close Window

Passing Ip to database

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=25896
Printed Date: 29 March 2026 at 4:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Passing Ip to database
Posted By: Nerz
Subject: Passing Ip to database
Date Posted: 26 June 2008 at 7:40pm
I was wondering if anyone could give idea on how i can create a website that will capture and ip address. i want to be able to append to a database.



Replies:
Posted By: Jono
Date Posted: 26 June 2008 at 8:03pm
<% = Request.ServerVariables("REMOTE_ADDR") %> will get the IP address, then just INSERT it into your database.
 
For a script to show all the ServerVariables see my post in this topic: http://forums.webwiz.net/forum_posts.asp?TID=25809&KW - http://forums.webwiz.net/forum_posts.asp?TID=25809&KW =
 
Jono



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net