Setting a Cooki
- Started
- Last post
- 8 Responses
- tparsons
Does anyone here have a really simple way to set a cookie using PHP? I need it for a simple voting system. Once a vote is made on a specific computer I don't want them to be able to vote again unless they got through the trouble of dumping all cookies.
Thanks for the help in advance.
- JazX0
I have no idea, but I love your work for the 1200th time.
- tparsons0
You crazy boy JazX. Email me if you want to work some sort of deal out on a certain print etc.
Have a good one.
- cosmo0
setting cookies:
setcookie("cookname", $_SESSION['username'])
access cookies variable:
$_COOKIE['cookname']
- cosmo0
let me know if you have questions.
- tparsons0
Hi Cosmo... thanks for the tips... Where does this code go? I'm not a coder so forgive my ignorance.
Thanks,
- cosmo0
hmm...can you send me your code? I can fix it up if you want.
- JazX0
You crazy boy JazX. Email me if you want to work some sort of deal out on a certain print etc.
Have a good one.
tparsons
(Dec 29 05, 09:14)ahhh thanks, you're the best. and yeah cosmo knows his PHP. one the best I know!!