05-01-2008, 03:04 PM
|
#5 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
Javascript is a client side language and can be executed at any time. PHP is a server side language and is done parsing the code when you see the page. Javascript starts after PHP ends. Since they are ran at different times, you can not call PHP from javascript. What you can do is use ajax to send a request to a PHP page and get the response. I have a limited knowledge of javascript, so someone else will have to help you with that.
|
|
|
|