SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Feb 26, 2007, 02:17 #1
- Join Date
- Oct 2006
- Location
- Karachi, Pakistan
- Posts
- 253
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Access php variables using JS ???
Can i access php variables using JS , if yes then how ?
chartahir
-
Feb 26, 2007, 02:49 #2
- Join Date
- Nov 2004
- Location
- Ankh-Morpork
- Posts
- 12,158
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Not as such. PHP is executed on the server, while JavaScript is executed in the client browser.
You can, however, generate JavaScript code via PHP on the server side. That allows you to use PHP variables when generating the script code. They won't be available when the script is executed, though.Birnam wood is come to Dunsinane
-
Feb 26, 2007, 05:27 #3
- Join Date
- Mar 2001
- Posts
- 3,537
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Can i access php variables using JS , if yes then how ?
Bookmarks