...

View Full Version : cookie



sahkan_dengran
10-20-2012, 09:21 AM
Hii i wanna to do kind of text like this: welcome,(cookie)
And i tried many things like $COOKIE and ($COOKIE) and ($_COOKIE) and this is dosent work.
help?

davidjones1990
10-20-2012, 10:42 AM
You need to set a cookie first using setcookie().

Im assuming that the cookie would be the username of the current user so you could access it using $_COOKIE['username'].

So when your user is successfully logged in thats when the cookie has to be set.

Hope this helps.

sahkan_dengran
10-20-2012, 11:09 AM
You need to set a cookie first using setcookie().

Im assuming that the cookie would be the username of the current user so you could access it using $_COOKIE['username'].

So when your user is successfully logged in thats when the cookie has to be set.

Hope this helps.

it is not helpd :(
P.S:I have another page named myprofile.php and there is wroten the username but i tried it too and i dosent work :(
and the files from tutorial.

bjarneo
10-20-2012, 05:08 PM
I think you should read more about basic php and cookies. Then if you still don't know how to do it, ask.

davidjones1990
10-20-2012, 05:22 PM
I think you should read more about basic php and cookies. Then if you still don't know how to do it, ask.

I agree, have a look at the php manual. That explains it well with some nice examples. If it is still causing you problems, come back and post some code as well :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum