Forum Moderators: coopster

Message Too Old, No Replies

How do I detect Javascript from within PHP

Do different thing if Javascript enabled.

         

Namolovan Nicolae

12:30 pm on Oct 13, 2005 (gmt 0)



Such a thread already was here [webmasterworld.com...] but i have a solution what i can't post there, i'll post it here, so maybe someone else might like it too.

The scenario is the next.
On client side is a javascript what will set a new cookie var, example js_enabled=yes.
Only js enabled browsers will do that, so in PHP we'll just check if that cookie exist.

Cheers.

coopster

2:27 pm on Oct 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Namolovan Nicolae, and thanks for the tip!