Click to See Complete Forum and Search --> : php popup alert message


Tasmanian Devil
07-25-2003, 08:24 AM
Is it possible to have php to have a alert message popup if the user does not have cookies and/or js enabled? and when ok is pressed then the browser closes itself?

Thanks

pyro
07-25-2003, 08:42 AM
No, PHP runs serverside, and cannot manipulate objects on the clients end. You'll just have to print a message...

Da Warriah
07-25-2003, 10:29 AM
well would it be possible to put a hidden input field on the page, then if cookies are enabled, javascript takes that variable inside the input and pops up an alert based on that?

although it might be hard to figure out whether JS is enabled, considering if it isnt, you wont get any alert no matter how hard you try....

pyro
07-25-2003, 10:32 AM
Originally posted by Da Warriah
although it might be hard to figure out whether JS is enabled... http://forums.webdeveloper.com/showthread.php?s=&threadid=13101#post71704

Da Warriah
07-25-2003, 10:35 AM
yeah but if javascript is disabled, its gonna be pretty hard to get an alert box to pop up, lol...

pyro
07-25-2003, 10:37 AM
Yes, but you can detect if javascript is enabled or not...