Re: [PHPLIB] Calling Javascript from php From: little kulit (kulittle <email protected>)
Date: 01/22/00

Let me explain what I'm trying to do and how far had
i've gone through. I'm not sure if the approach to
this is right or not.

I generated a form using php. In that form I have a
couple of selection boxes. One of those selection box
(key) will decide the value of the other selection
boxes. When a person chooses a value from the (key)
selection box the other selection box will need to get
its value from a database (postgresql) using that
value as key. I'm using the onchange event in the
form to call the javascript which in turn will open a
new window ( another php script ) to access the
database. My problem right now is I don't know how to
pass the variables from the original php form to the
javascript it is calling so that i can tell him which
table to access, what variable to test those
conditions, etc. I also don't know how to pass those
information from the javascript to the new window (
another php script ). And lastly how will the new
window upon getting all the necessary data from the
database pass it back to the original php form so that
it can be seen in the selection boxes.

Thankx.

--- David Tiselius <david.t <email protected>> wrote:
> little kulit wrote:
> >
> > How do u exchange data between php and javascript?
> I
> > like to access the variables of php from
> javascript
> > and vice versa.
> >
> er...
> You put the variables from php into the jscript, or
> send them from the
> jscript, through post or get, to a php-script on the
> server... or have i
> missed the point?
>
> --
> :::::::::::::::::::::::::::::::::::::
> David Tiselius, david.t <email protected>
> http://walk.to/tiselius
> 08/720 03 43, 0707/31 32 46
> :::::::::::::::::::::::::::::::::::::
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
-
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.