UnknownPlayer Posted March 31, 2011 Share Posted March 31, 2011 How can i run this javascript command show_seasons(some_value), in php code, i mean without any action ? I have this php code: if ($sid == $s_id) { javascript:show_seasons($sid); } How to do that? Thanks.. Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted March 31, 2011 Share Posted March 31, 2011 JavaScript is a client-side language while PHP works on the server-side, so there isn't a way for them to work together. Is there something that you're doing in JavaScript that you're not sure how to do in PHP? Or are you just trying to save time by not rewriting the JavaScript functionality? Quote Link to comment Share on other sites More sharing options...
UnknownPlayer Posted March 31, 2011 Author Share Posted March 31, 2011 Im just trying to use that javascript code, but i can make same code which i use in javascript/ajax command.. Thanks.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.