![]() Topic awaiting preservation: Showing Cookies With PHP (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
![]() Ok, I have a shoutbox at my site, www.ensellitis.com, and I am trying to get it to where if you have cookies enabled it shows a check box to save thier info if they want, and if they don't, it simply says code: <?
|
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() well... how would that ever work? |
Paranoid (IV) Inmate From: A graveyard of dreams |
![]() and the first line should read: code: if ($MODE != "test") {
|
Maniac (V) Inmate From: Cell 666 |
![]() |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() Tyberius Prime: |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() quote:
|
Paranoid (IV) Inmate From: Maryland, USA |
![]() !== Means it's not exactly equal, if I recall correctly. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() $a === $b Identical TRUE if $a is equal to $b, and they are of the same type. (PHP 4 only) |
Neurotic (0) Inmate Newly admitted From: the pit... deep in the pit |
![]() I was hoping to find an answer to the same question, guess not. But here's one way to get your check box working, set the cookie with php, then test for that cookie with javascript on the page, that works fine, if the cookie is present, write your checkbox with javascript, if it isn't, write your cookie enabling message |