i doubt u can fetch this information... check phpinfo but i dont think....
Detecting Javascript with PHP
concidering that a LOT of people edit the mozilla (or other opensource browser) to change the useragent (for marketing purpose or for fast passing glory, who knows) you can't be sure that your IE 6 is an IE 6 and not a mozilla or that your IE6 doesn't have jscript restrictions...
thats eactly why i do not awant a browser sniffer but a javascript deetctor... and no reloading the page with javascript set variables is not an option...
well the easy thing to do would be to have php generate a self calling page with params with a javascript window.open with params and if it refreshes it means jscript is allowed see?
PHP is server-side script. It's parsed by the server, not the client.
Another way of doing it is print some java script inside the html that php creates... ! ...Then put some variable in a form or something when the user makes a submission.
Bunkermaster wrote:sig
What is RTFM and UTSL?
$RTFM = "Read The Friendly (Fucking?) Manual";
$UTSL = "Use The Source Luke";
Originally posted by Weedpacket
STFW
but... loool... but... WE r the web...
As 7khat has explained in his reply, php is server side processt. Until this point, there is no JavaScript code executed.
The JavaScript tags are nested in <script> tages. If the browser does not support scripts, you can use client side <noscript> tags.
Between these tags. the html-code between it only will been showed, if no javascript is supported.
If you only want to inform your user about this circumstance, you can use it this way.
Maybe this helps
John
ok let me explain...
when you create the first page open a session, print a self refreshing javascript link with a $REQUEST param in it.
if javascript is enabled you'll have a refresh with a known $REQUEST param. If not don't use javascript.
clear enuf I hope...
Originally posted by Weedpacket
STFW
I don't know what that means, could you give me a link? lol
As far as this question, I think Bunkermaster's solution is the best for displaying the proper page. If you put the javascript redirect way up top in the HTML it should send them to the javascript page before you waste too much bandwidth loading the non-javascript page.
If you start a session, though, I do not know if PHP will append the URL in javascript code. Might want to check on that, if not you will need to append it yourself for non-cookie browsers.
STFW = "Search the Friggin Web"
won't explain third time, read carefully please...