problem with cookie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
syno
Forum Newbie
Posts: 9
Joined: Wed Oct 15, 2003 11:22 am

problem with cookie

Post by syno »

i am trying to sort a username sent by a from via POST but when i try to echo that cookie it only stores the first letter of the username

any reason for this?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

post some code :P
evilMind
Forum Contributor
Posts: 145
Joined: Fri Sep 19, 2003 10:09 am
Location: Earth

Post by evilMind »

must.... see..... code..... ;)
syno
Forum Newbie
Posts: 9
Joined: Wed Oct 15, 2003 11:22 am

Post by syno »

yeah i deleted the code but what im basicly trying to do is save the users , username that he/she enters in to a cookie, that i can check againt a database once there logged in
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Check this out. It'll help you learn what you're trying to accomplish.

It's fairly simple, but most of us would refuse to post any code unless you do - since we wouldn't just want someone to just come and take without learning...

-Nay
Post Reply