Page 1 of 1

problem with php code inside a javascript

Posted: Fri Mar 30, 2012 4:06 am
by Cole001
Hello,

I have a php code within a javascript. The javascript gets invoked on button click. The php code withing javascript never gets executed. I don't face the same problem in other browsers.

Please help me for that..

Thanks,
Cole

Re: problem with php code inside a javascript

Posted: Fri Mar 30, 2012 4:30 am
by social_experiment
Cole001 wrote: I don't face the same problem in other browsers.
In which browsers does it work?

Are you trying to execute php code because it will have to be submitted to the server as it is server side code