Jump to content

Javascript won't execute second php script inbedded original php script


slashpine

Recommended Posts

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...

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.