Carved in mystic runes upon the very living rock, the last words of wj of
comp.lang.php make plain:
[color=blue]
> Is it possible to detect wether a user has enable javascript is his
> browser or not within PHP?[/color]
No, but it's possible to detect it with Javascript; you can then pass
that information on to PHP. It's a two-step process, though. Your first
page is something like this:
wj <wjzeeuwen@home .nl> wrote in message news:<coljfd$l0 $1@news4.zwoll1 .ov.home.nl>...[color=blue]
> Hi all,
>
> Is it possible to detect wether a user has enable javascript is his
> browser or not within PHP?[/color]
Why not simply set a value to a hiddenfield
using a simple javscript-function?
If there is the expected value within
your POST-VARS after submit ...
"wj" <wjzeeuwen@home .nl> schrieb im Newsbeitrag
news:coljfd$l0$ 1@news4.zwoll1. ov.home.nl...[color=blue]
> Hi all,
>
> Is it possible to detect wether a user has enable javascript is his
> browser or not within PHP?
>
> Thanx,
> WJ[/color]
Michael Fesser <netizen@gmx.ne t> wrote in message news:<265tq01p7 r4fei13re18l1o3 10m6gl9b43@4ax. com>...[color=blue]
> .oO(R. Rajesh Jeba Anbiah)
>[color=green]
> ><noscript>
> ><meta http-equiv="refresh" content="0,URL= 'foo.php?js=0'" />
> ></noscript>[/color]
>
> While this might work, it's no valid HTML (noscript is not allowed in
> the document's head).
>[/color]
Yes, this a good criticism:-) What about this one, which doesn't
rely on meta refresh as browsers could disable it.
Also, if form is allowed to check the JS, it will be much easier
as we can populate any variables on onSubmit event. Also, it could be
much easier to do that in web bug.
Comment