Forum Moderators: open

Message Too Old, No Replies

.asp help newbie to asp

in need of some help

         

estebones

5:20 am on Oct 6, 2003 (gmt 0)

10+ Year Member



I am attempting to learn asp on my own and I have adapted some examples I found online in order to get accquainted<?sp> with this type of scripting. So one of the scripts that I grabbed from a website and adapted goes like this:

<%
dim numvisits
response.cookies("NumVisits").Expires=date+365
numvisits=request.cookies("NumVisits")
if numvisits="" then
response.cookies("NumVisits")=1
response.write("Welcome! This is the first time you are visiting this Web page.")
else
response.cookies("NumVisits")=numvisits+1
response.write("You have visited this ")
response.write("Web page " & numvisits)
if numvisits=1 then
response.write " time before!"
else
response.write " times before!"
end if
end if
%>
<html>
<body>
This is a welcome cookie that keeps track of how many times you have visited the page!
<%
response.write("<a href=index.asp>Home</a>")%>
</body>
</html>

It is primitive by most standards, I know :) but I am learning..so please go easy on me!
So my problem is that when I get upload it to the server, (which supports asp) and try to view it it tells me that the server no longer supports the "set" and "let" commands is this some old version of asp? or can some one tell me what it is that I can do to fix this problem...
any help would be appreciated.
esteban

topr8

3:36 pm on Oct 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hmm sorry can't help much, but i can tell you that the code works fine.

what server are you using?

estebones

8:22 am on Oct 10, 2003 (gmt 0)

10+ Year Member



some free asp hosting as I want to learn this before I get the option on my website.
as of Last Tuesday I have asp capabilities on my site so I guess I can try stuff out there...

Thanks.
este