Topic awaiting preservation: Showing Cookies With PHP (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 05-17-2004 06:20
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 |
posted 05-17-2004 08:47
well... how would that ever work? |
Paranoid (IV) Inmate From: A graveyard of dreams |
posted 05-20-2004 00:50
and the first line should read: code: if ($MODE != "test") {
|
Maniac (V) Inmate From: Cell 666 |
posted 05-20-2004 03:47 |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 05-20-2004 07:32
Tyberius Prime: |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 05-20-2004 11:44
quote:
|
Paranoid (IV) Inmate From: Maryland, USA |
posted 05-25-2004 22:08
!== Means it's not exactly equal, if I recall correctly. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 05-26-2004 06:50
$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 |
posted 05-30-2004 23:41
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 |