Page 1 of 1
DETECT JS USING PHP (SERVER SIDE)
Posted: Tue Apr 22, 2008 3:51 am
by mhonnphp
Guys,
Is there any way that I can Detect if Javascript is ON thru server side using PHP?
Please lend me your codes.. or any tips! thanks and Godbless.
Raymonn
Re: DETECT JS USING PHP (SERVER SIDE)
Posted: Tue Apr 22, 2008 5:12 am
by onion2k
Can't be done with PHP. There are a few ways to test though ... one is to set a JS variable in a form (or a cookie) that you check when the user clicks something, or forward the user to a form that automatically submits itself if JS is enabled.
Re: DETECT JS USING PHP (SERVER SIDE)
Posted: Wed Apr 23, 2008 7:29 pm
by mhonnphp
onion2k wrote:Can't be done with PHP. There are a few ways to test though ... one is to set a JS variable in a form (or a cookie) that you check when the user clicks something, or forward the user to a form that automatically submits itself if JS is enabled.

ah ok! thanks for the reply.. I'll try it
Re: DETECT JS USING PHP (SERVER SIDE)
Posted: Fri May 09, 2008 4:58 am
by bluejon
I have some code which detects javascript with php.
It can be found at
http://snippets.bluejon.co.uk/
bluejon