mayu_bt Posted March 20, 2006 Share Posted March 20, 2006 Hi Gurus,Please tell me what to do when its needed to run PHP server scripts in the condition statements of JAVA script..When I enter any PHP script in the body of a function of javascript and want that to run only when some conditions are met, its not happening... it runs whether the condition is met or not... I mean the if statement is simply not being checked!!..eg:<script-javascript>function start(){if(document.option.blah blah..){ <?PHP ech "Hi Mayu"; ?>}}..... Quote Link to comment https://forums.phpfreaks.com/topic/5336--/ Share on other sites More sharing options...
kenrbnsn Posted March 20, 2006 Share Posted March 20, 2006 PHP runs on the server and is run before the browser sees the javascript to run. If you want to do something like this, you need to look at AJAX programming, which allows javascript scripts to run another script on the server that returns information back to the script.Ken Quote Link to comment https://forums.phpfreaks.com/topic/5336--/#findComment-19010 Share on other sites More sharing options...
mayu_bt Posted March 20, 2006 Author Share Posted March 20, 2006 Hi kenrbnsn,What is that AJAX programming? is it a new concept or a new language? plese tell me how and where to get more information on that to get my current problem solved.. Quote Link to comment https://forums.phpfreaks.com/topic/5336--/#findComment-19111 Share on other sites More sharing options...
ober Posted March 20, 2006 Share Posted March 20, 2006 AJAX is not new, and it's not a specific language. It is a combination of JavaScript and calls to backend scripts, whether it be Perl, PHP, ColdFusion, etc.www.ajaxfreaks.com is another site that is part of the webfreaks network. Check it out. Quote Link to comment https://forums.phpfreaks.com/topic/5336--/#findComment-19114 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.