Hi,
You can check if browser cookies are enabled or not by using follow. given
JavaScript functions.
//** jsfunc.js ***//
function f_ReadCookie(cookieName)
{
if (cookieName == "" )
{
return;
}
var theCookie=""+document.cookie+(("/") ? "; path=" + "/" : "") ;
v
d starting point for setting cookies: if
you haven't read the manual, it migh be helpful.
-Original Message-
From: Aidan Lister <[EMAIL PROTECTED]>
Sent: Jun 21, 2004 5:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Testing if cookies are enabled
Think about it.
Step 1) Analyse
* Thus wrote Martin Schneider:
>
> But I have seen pages on which it seems they set und check if the cookie
> has been set ON THE SAME PAGE. So I want to know how they do that
> (perhaps with a 302-header or something like that?).
I think you answered you're own question :)
if(! isset($_COOKIE
On 21 June 2004 12:11, Martin Schneider wrote:
> thanks for your reply, I think you missunderstood, please read more
> carefully. I know how to set and read a cookie, but as I
> wrote I wasn't
> able to set and text a cookie ON THE SAME PAGE.
>
> The manual says: http://php.net/setcookie
> "Once
Hi Aidan,
> Think about it.
>
> Step 1) Analyse the problem.
> a) Set a cookie.
> b) Test if the cookie has been set.
> c) Display data from cookie
>
> Step 2) Read the fucking manual
> a) http://php.net/setcookie
> b) http://php.net/setcookie
> c) http://php.net/setcookie
thanks for your reply, I
Think about it.
Step 1) Analyse the problem.
a) Set a cookie.
b) Test if the cookie has been set.
c) Display data from cookie
Step 2) Read the fucking manual
a) http://php.net/setcookie
b) http://php.net/setcookie
c) http://php.net/setcookie
If you can't work it out, and have actually done some
6 matches
Mail list logo