Page 2 of 2
Posted: Thu Sep 16, 2004 8:30 am
by grammic
I guess I'm being a little thick here but I still don't get how your
suggestion is going to help me Dethron...
By getting the addresses in a database I'm able to track where the users are going;
And how can I use the cookie-data;
The previous answer was for another member who proposed something.
Posted: Thu Sep 16, 2004 8:48 am
by dethron
Code: Select all
<%
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>
</body>
</html>
As you may see, you can use
request.cookies("NumVisits") part the read information from cookie.
DAMN I wrote some ASP

Posted: Thu Sep 16, 2004 8:49 am
by dethron
And remember, you can get the id variable using Request("id")
Posted: Thu Sep 16, 2004 9:12 am
by grammic
Oh god I made a terrible mistake!
Haven't I mentioned that I know nothing about asp?
I am just saving the pages with that extension so that I can use some features
of asp, like including a file I want in every page of my site for aesthetical reasons ! If I change their extension to php I will destroy their appearance
and I don't have the time to do it all over again.
I am really sorry, that is why I didn't get what you were saying!
Posted: Thu Sep 16, 2004 9:19 am
by dethron
You should give us some information
1) what is your server? (apache or IIS)
2) how much do you know php?
3) how much do you know asp?
4) how much do you know about programming?
Remember, there is no one-way!! There are many ways to make things work.
As a developer i can say nothing about "aesthetical reasons" but one thing that
aesthetical reasons HAVE NO RELATION WITH CODING.
5) how can you save asp pages?
6) what features? including a file like in include() function in PHP?
And the last thing : I'm sorry but i did not get anything from what you are saying, too.
Posted: Thu Sep 16, 2004 9:52 am
by grammic
1) My server is IIS
2)I know as much php as I need to know so that I can create a survey system
3)I don't know asp
4)I guess you already formed an opinion...
The reason I am in this forum is because I KNOW there is not just one way to make things work and I asked if anyone could tell me a way I haven't thought of. I do have some restrictions though, which I explained from the beggining, that I know only javascript and php and that I can't change some things.
I used asp because I can include a file that contains tables I need in every page of my site (maybe you haven't heard of that use). That is what aesthetical means, it's not a file with functions but an html file with tables that have links, acknowledegments and pictures I want in every page.
5)when you save a file you can choose what extension you want it to have, for example I write in a .txt file and I save it as an .html file. I think you know that... So you can save it as an .asp file as well.
6)No it's not like php include as far as I know
I don't want to waste anybody's time here , I'm honest when I say I'm sorry and I appreciate every help. But please don't interpret my politeness as weakness and stupidity.
Thanx for everything and most of all for the time you dedicated in this.
Posted: Thu Sep 16, 2004 10:09 am
by dethron
4.
I used asp because I can include a file that contains tables I need in every page of my site (maybe you haven't heard of that use).
yes actually i heard aout that

this is the same way we include footer.php's to all of our pages.
a php file can contain tables and other HTML-things too. so you can use include() of PHP

So no need to use ASP.
5.so you are saving them manually (this is the informatin i asked of)
FORGET THE ASP, and lets write the whole page using PHP.(what ever the extention is, you can include it.)
Posted: Thu Sep 16, 2004 10:48 am
by grammic
Even if I think that you patronize me, thanks, you were right.
Posted: Thu Sep 16, 2004 10:51 am
by dethron

I think you used the word "patronize" to mean "to support" not to "to act as patron"

lets solve this issue, i should get some rest then

I do not want this issue remains unresolved.
I was Forum Newbie once

Posted: Thu Sep 16, 2004 11:04 am
by grammic
You mean resolve it now;
Ok, I picked up a sense of irony in your last answers. I may not be as ignorant as you think but when asking for help and most of all in a language none of us know, you're bound to have misunderstandings and confusions.
Can you say for sure you weren't ironic;
Posted: Thu Sep 16, 2004 11:10 am
by dethron
this is not about PHP, so dethron out.
good luck. (according to me, the issue is solved.)
Posted: Fri Sep 17, 2004 6:55 am
by grammic
the end