JavaScript and client side scripting.
Moderator: General Moderators
-
manojsingh
- Forum Newbie
- Posts: 2
- Joined: Mon Jan 03, 2011 12:53 pm
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

-
Darhazer
- DevNet Resident
- Posts: 1011
- Joined: Thu May 14, 2009 3:00 pm
- Location: HellCity, Bulgaria
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?
-
spedula
- Forum Commoner
- Posts: 81
- Joined: Mon Mar 29, 2010 5:24 pm
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.