33 lines
863 B
PHP
33 lines
863 B
PHP
|
<?php
|
||
|
include 'include/controller.php';
|
||
|
?>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="fr">
|
||
|
<head>
|
||
|
<meta charset="UTF-8" />
|
||
|
<title></title>
|
||
|
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@1.*/css/pico.min.css">
|
||
|
|
||
|
<link rel="stylesheet" href="./css/style.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<main class="container">
|
||
|
<h3>Calculatrice</h3>
|
||
|
<form method="POST">
|
||
|
<div class="grid">
|
||
|
<input placeholder="un nombre" type="number" step="any" name="op1" value ="" required>
|
||
|
<select name="operation" required>
|
||
|
<option value="+">+</option>
|
||
|
<option value="-">-</option>
|
||
|
<option value="x">x</option>
|
||
|
<option value="/">/</option>
|
||
|
</select>
|
||
|
<input placeholder="un nombre" type="number" step="any" name="op2" required>
|
||
|
<button type="submit" name="soumis"> Calculer</button>
|
||
|
</grid>
|
||
|
</form>
|
||
|
</main>
|
||
|
</body>
|
||
|
</html>
|