function calculdebit() { global $wpdb; $plateauType = $_POST['plateauType'];
<div id="select-2" class="champ_outil"> <label for="select-2-label"> Quel est le plateau type ?</label> <select id="plateauType" name="plateauType[]"> <!-- <option value="1"> </option> --> <option id="PLATEAU-1" value="2" <?= (isset($_POST['plateauType']) && $_POST['plateauType'] === '2') ? 'selected' : ''; ? >> plateau-1 </option> <option id="PLATEAU-2" value="3" <?= (isset($_POST['plateauType']) && $_POST['plateauType'] === '3') ? 'selected' : ''; ?>> plateau-2 </option> <option id="PLATEAU-3" value="4" <?= (isset($_POST['plateauType']) && $_POST['plateauType'] === '4') ? 'selected' : ''; ? >> plateau-3 </option> <option id="PLATEAU-4" value="5" <?= (isset($_POST['plateauType']) && $_POST['plateauType'] === '5') ? 'selected' : ''; ? >> plateau-4 </option> <option id="PLATEAU-5" value="6" <?= (isset($_POST['plateauType']) && $_POST['plateauType'] === '6') ? 'selected' : ''; ? >> plateau-5 </option> </select> <pre> <? echo $plateauType[1]; ?>
@global var $name_of_variable
$plateauType
calculdebit
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)