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
Post a Comment