problem with php code inside a javascript

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Cole001
Forum Newbie
Posts: 7
Joined: Mon Jan 30, 2012 5:43 am
Location: Ahmedabad, Gujarat, India

problem with php code inside a javascript

Post 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
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: problem with php code inside a javascript

Post 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
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply