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
Reading Aidan's e-mails is like watching a Disney movie. You can't help but feel warm and fuzzy inside and loving toward the whole world. Basically, create a page with an HTML form that takes the user name and password (or whatever login information you think is appropriate). The action of the

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