Re: [PHPLIB] Calling Javascript from php From: Bryan McGuire (joefriday <email protected>)
Date: 01/19/00

From: K1 <archiver <email protected>>
Subject: [PHPLIB] Calling Javascript from php

> I'm trying to change the content of a selection
> box based on the value of another selection box.

> I need to do a database query from a javascript
> since I'm trying to use the onchange event. Is
> there a way to do this or are there any work
> around for this?

php is a server side scripting language and can
not be helpful in any way for acomplishing what
you are wanting. By itself, javascript just
doesn't have the hooks in it you'll need to have
the browser query a database. The only way to
work around this would be to write (or find) a
java applet that communicates with your sql server
and have your javascript access that.

This really belongs on a different mailing list.

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.