html - How to auto submit a form just on the change of drop down using php -


how auto submit form on change of drop down using php? i.e. form should automatically submitted whenever 1 selects value select box.

i know can done using jquery , others want done through php. there way this?

i'd try use javascript it.

add onchange or onblur event html input of choice with, this: onchange = formname.submit();

or, can separate js function, have give id form. can this:

  • on input: onchange = formsubmit();
  • js:

function formsubmit() { document.getelementbyid("formid").submit(); }

the important thing know php it's server side. means it's first thing run, every time open page, without exceptions. serves gets request page, runs php code, gives necessary info browser in turn display page , runs js code.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -