php and java script

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
manojsingh
Forum Newbie
Posts: 2
Joined: Mon Jan 03, 2011 12:53 pm

php and java script

Post 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

:)
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: php and java script

Post 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?
User avatar
spedula
Forum Commoner
Posts: 81
Joined: Mon Mar 29, 2010 5:24 pm

Re: php and java script

Post 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.
Post Reply