Collect IP

J

Jake Klaus

Is there an easy way to collect IP address when users opt-in from my
website? Need to collect IP, date and time, and email address during
opt-in. I can get the email by having the user enter it in a form field,
but what about the others?
 
C

Cowboy \(Gregory A. Beamer\)

The IP address is sent in whenever a page is requested. WIth ASP, you can
get this from the ServerVariables collection. With ASP.NET, it is a bit
simpler, as the model helps you. Date and Time are easu tp get from the
server. In ASP, for example, you would simply do something like:

strTime = Now()

You can get more granular. There are plenty of tutorials on the web for both
ASP and ASP.NET. If you are UNIX based, you will have to complete these
steps with a CGI script, but that is fairly commonplace, as well.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
J

Jake Klaus

Thanks.

MD WebsUnlimited.com said:
Hi Jake,

The Form Save results allows you to save those values.
--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
-------------------------------------------------------------------------- --
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top