No sure how you mean 'calling' the script... but in addition to using
something like

        document.location='myscript.php'

It would theoretically be possible to pass javascript variables to a PHP
script in the same way by using something like

        var foo = "Some Text";
        var bar = "Some other text";
        document.location = 'myscript.php?foo=' + foo + '&bar=' + bar;


And although it's not exactly 'calling' a script from Javascript, you can
use PHP to generate your script on the fly... handy if you need to do
something with data from a database within a Javascript. (Not sure what that
would be, but it might come in handy.)

-Andy


> -----Original Message-----
> From: Richard Lynch [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 8:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: could i get a clue?
>
>
> > ok a basic question. perhaps I dont know enough about javascript but
> > anyway..
> >
> > I want to call a php script from javascript. Anybody have any hints for
> me?
> > A link to a useful website would work as well. thanks mates
>


-- 
PHP General 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]

Reply via email to