View Single Post
Old 05-01-2008, 03:04 PM   #5 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,216
Thanks: 17
Village Idiot is on a distinguished road
Default

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.
Village Idiot is offline  
Reply With Quote