Dear friends,
I'm not able to make a Code work. Kindly help me out:
<% If Request.Cookies ("Visits")="" Then %>
<% Response.Cookies ("Visits")=1 %>
This is your first visit to this page. Welcome.
<% VisitorsIP=Request.ServerVariables ("REMOTE_ADDR")
Set fs = CreateObject("Scripting.FileSystemObject")
Set wfile = fs.OpenTextFile("c:\WebVirdi\Testing\IpLog.txt", 8,false,0)
wfile.WriteLine (VisitorsIP)
wfile.close
Set wfile=nothing
Set fs=nothing
response.write("New IP Registered") %>
<% Else %>
<% VarVisits=Request.Cookies ("Visits")
VarVisits=VarVisits+1
Response.Cookies("Visits")=VarVisits %>
Welcome back to this page. You have visited this page <% =VarVisits %> times.
<% End If %>
I'm trying to put in a code which will Check Number of Visits of a
visitor. If the visitor is a new visitor... then it should register its IP. But
if the visitor is not new, then it should simply display their number of
visits. Can u plz explain what was the problem in this 1?
Confused Learner,
gsvirdi
Do not value the THINGS you have in your life. But value WHO you have in your
life!
DISCLAIMER
********************************************************************************
Information contained and transmitted by this electronic communication together
with any attachments, may be legally privileged or confidential and is intended
only for the exclusive use of the individual(s) or entity to which it is
addressed. Opinions expressed are those of the sender and not necessarily that
of BHEL-PEM. If you are not the intended recipient or an agent of the intended
recipient or a person responsible for delivering the information to the named
recipient, you are notified that any use, copying, distribution, transmission,
printing, dissemination, of this message is strictly prohibited.
If you have received this message in error, please notify us immediately at
[EMAIL PROTECTED] and delete the message.
While BHEL-PEM is using the latest antiviral tools, we do not accept any
responsibility for problems caused by viruses or other destructive mechanisms,
which may get attached to electronic communication. Please scan this email and
its attachment, if any, to ensure that the message is safe for use on your
system.
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
<font face=arial size=-1><a
href="http://us.ard.yahoo.com/SIG=12hsakcn4/M=362329.6886308.7839368.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1123671220/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~->
ASP Resources www.asp-dev.com
============================================================
Learn over lunch. Get the developerWorks newsletter and
enjoy tools, code, and tutorials, along with your sandwich.
XML, Linux, Web services, Java -- and peanut butter!
http://www.topica.com/partner/AP-1RMZ49/partners/ibm/aff_landing.html
============================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/asp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/