<!DOCTYPE html> <html> <form method="post" action="main.php"> <label for="meas">Unité de la sortie</label> <select id="meas" name="meas" onchange="this.form.submit();"> <option value="VOLT:AC" <?php if($unit=="VOLT:AC") echo "selected" ?> >V AC</option> <option value="VOLT:DC" <?php if($unit=="VOLT:DC") echo "selected" ?> >V DC</option> <option value="CURR:AC" <?php if($unit=="CURR:AC") echo "selected" ?> >A AC</option> <option value="CURR:DC" <?php if($unit=="CURR:DC") echo "selected" ?> >A DC</option> <option value="CAP" <?php if($unit=="CAP") echo "selected" ?> >Farad</option> <option value="RES" <?php if($unit=="RES") echo "selected" ?> >Ohms</option> <option value="DIOD" <?php if($unit=="DIOD") echo "selected" ?> >Diode</option> </select> </form> </html>