float taille planning div

This commit is contained in:
Baptiste 2022-06-17 14:31:47 +02:00
parent 29c76d4a51
commit 78af658f90

View file

@ -42,7 +42,7 @@ if(isset($_POST['send'])) {
$desc = htmlspecialchars($_POST['description']);
$color = htmlspecialchars($_POST['color']);
$order_start = (int) htmlspecialchars($_POST['order_start']);
$len = (int) htmlspecialchars($_POST['length']);
$len = (float) htmlspecialchars($_POST['length']);
$num_planning = (int) htmlspecialchars($_POST['num_planning']);
$req = $db->prepare("INSERT INTO planning_insa(day, title, description, color, order_start, length, num_planning) VALUES(?, ?, ?, ?, ?, ?, ?)");
@ -77,7 +77,7 @@ if(isset($_POST['send'])) {
<input type="text" class="input_inline" name="description" placeholder="description">
<input type="color" name="color">
<input type="number" class="input_inline" name="order_start" placeholder="Ordre d'apparition">
<input type="number" class="input_inline" name="length" placeholder="Taille (%)">
<input type="float" class="input_inline" name="length" placeholder="Taille (%)">
<select name="num_planning" class="input_inline">
<option value="1">Planning 1</option>
<option value="2">Planning 2</option>