[thelist] Testing for Javascript with PHP

Liorean Liorean at user.bip.net
Fri Oct 11 14:52:00 CDT 2002


At 21:41 2002-10-11 +0200, Nickolay Kolev wrote:
>Is there any way I could test with php wheter the browser accessing the
>page has javascript or not... I have had a look at environment
>variables but couldn't find anything like that...

I don't know of such a mechanism (on the other hand I don't know any php),
but you could always put a script in the page, and set a session variable
when such a file is requested. Then you can base your php output upon that
variable.

// Liorean




More information about the thelist mailing list