![]() |
can i incorporate javascriptin php?
don't know where to postthis but i yhink it ismore aboout php..
i need some clarifications... lets say that i have a javascript function.. <script> var i =0; function xxxx () { if (i == 1) php expression } else if (i == 2) php expression } </script> is this possible? thanx... |
What? This forum is for php, not javascript, I suggest a mod to move this to the javascript forum. oh and no, must be in the scope.
Also, you can put javascript in php, just do an echo or print | printf PHP Code:
|
but how bout vice versa?
inside the java script is a php script? can that be possible and how because i think document.write doesn't work for it... |
Quote:
|
thanx.. than ill just use javascript inside php statements
thanx for the help... |
Quote:
PHP Code:
|
| All times are GMT. The time now is 04:41 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0