Skip to content Skip to sidebar Skip to footer

Having Separate PHP Functions For Individual Option Values Html

Is it possible to call a function when a different option value is select from a select box? the select box consists of 'approved' 'pending' and 'dissapproved'. I have a form which

Solution 1:

Send the selection value to another page via a variable and then

$selection = $_POST['variable']
if ($selection == "1") {
    ....
    }
elseif ($selection == "2") {
    ....
    }

Post a Comment for "Having Separate PHP Functions For Individual Option Values Html"