Page 1 of 1
php and java script
Posted: Tue Jan 04, 2011 11:49 am
by manojsingh
hello,
i want to know is it possible to embed java script in php or vica versa...?
if it is then how..?
thank you very much

Re: php and java script
Posted: Tue Jan 04, 2011 2:07 pm
by Darhazer
PHP works on the server side, produces HTML (which can have JavaScript embeded) and output to the browser, JavaScript works in the browser.
What you are trying to achieve?
Re: php and java script
Posted: Fri Jan 07, 2011 5:42 am
by spedula
You can have PHP output info into JS, like Darhazer said.
You can also output JS variables into PHP for processing then back into JS using AJAX.