At 06:27 PM 2/23/2001 -0300, you wrote:
>Remember, php is server side while JavaScript is client side. You can't use
>php client side. You can use some client side events to call php scripts
>which will run on the server and send data to the browser. Events are client
>side, so try JavaScript you'll enjoy it too.
Also keep in mind that Javascript should *never* be relied upon for input
validation.
It is trivial to disable Javascript on the client side (and there are very
good reasons for doing so, drop by www.securityfocus.com sometime for
reasons why) and you cannot trust any data that comes from the end user. I
personally would never recommend Javascript "crippling" your site - it
should run perfectly without it since support varies from browser to
browser (not everyone uses the latest version of IE) and you have no
guarantee that it will be enabled client side at all. That's not even
getting into people building URLs by hand for "kicks". Since you have to
perform input validation server side anyway, this makes Javascript pretty
much useless for this purpose.
Javascript is really only useful for display effects that do not affect
accessibility which means they should be avoided most of the time just like
Macromedia Flash, Quicktime, etc. unless you are 100% sure your audience
meets your site's requirements exactly.
All IMHO of course.
Cheers,
Ron
-----------------------------------------------------------------------------
Island Net AMT Solutions Group Inc. Telephone: 250 383-0096
1412 Quadra Toll Free: 1 800 331-3055
Victoria, B.C. Fax: 250 383-6698
V8W 2L1 E-Mail: [EMAIL PROTECTED]
Canada WWW: http://www.islandnet.com/
-----------------------------------------------------------------------------
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]