RE: [PHP] Re: Testing if cookies are enabled

2004-06-22 Thread Umesh Deshmukh
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

Re: [PHP] Re: Testing if cookies are enabled

2004-06-22 Thread deseavers
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

Re: [PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Curt Zirzow
* 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

RE: [PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Ford, Mike [LSS]
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

[PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Martin Schneider
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

[PHP] Re: Testing if cookies are enabled

2004-06-21 Thread Aidan Lister
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