slashpine Posted March 26, 2007 Share Posted March 26, 2007 I have a php script that returns a display from a DB search... I have added a php/form/script to the display page that has a dropdown menu (static html)...everythign works fine when a selection is made and the 'Submit' button is clicked... the problem is I would like the embedded script to execute "onChange" whenever a selection is made but regardless of the syntax it will not execute the second query. (unless the button is clicked) any ideas? the same script works fine when it's not embedded inside of another script... Link to comment https://forums.phpfreaks.com/topic/44395-javascript-wont-execute-second-php-script-inbedded-original-php-script/ Share on other sites More sharing options...
kenrbnsn Posted March 26, 2007 Share Posted March 26, 2007 PHP runs on the SERVER, Javascript runs on the CLIENT. By the time Javascript executes, the PHP processor is long gone. The only way to do what I think you want to do is to employ AJAX techniques. Ken Link to comment https://forums.phpfreaks.com/topic/44395-javascript-wont-execute-second-php-script-inbedded-original-php-script/#findComment-215601 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.