"ChronicFatigue" <NO*********@chronic-fatigue.co.uk> writes:
Given that some browsers dont have javascript enabled.... do developers try
to avoid using javascript when a php alternative can be used? What sort of
alternative php scripts are often used?
Yes, people do (or at least *should* if they don't) use PHP (or
another server-side language) instead of Javascript if possible.
As far as what PHP does, that depends what Javascript is doing. I
suppose a common example would be handling form submission, which can
be done in either Javascript or PHP, but can only be *sensibly* done
server-side in PHP.
If you give specific examples of things done with Javascript then it's
easy enough to say whether there's an obvious PHP alternative.
--
Chris