<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <h1> Formulaire </h1>

    <form action="exo1_traitement.php" method="POST">
        <label for="nom">Nom :</label>
        <input type="text" id="nom" name="nom"><br><br>

        <label for="email">Email :</label>
        <input type="text" id="email" name="email"><br><br>

        <label for="message">Message :</label>
        <textarea id="message" name="message"></textarea><br><br>

        <label>Choix unique :</label><br>
        <input type="radio" id="choix1" name="choix" value="choix1">
        <label for="choix1">Choix 1</label><br>
        <input type="radio" id="choix2" name="choix" value="choix2">
        <label for="choix2">Choix 2</label><br><br>

        <label>Choix multiples :</label><br>
        <input type="checkbox" id="option1" name="options[]" value="option1">
        <label for="option1">Option 1</label><br>
        <input type="checkbox" id="option2" name="options[]" value="option2">
        <label for="option2">Option 2</label><br>
        <input type="checkbox" id="option3" name="options[]" value="option3">
        <label for="option3">Option 3</label><br><br>

        <input name="userIP" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" type="hidden">
        <input name="userDATE" value="<?php echo date("Y-m-d H:i:s"); ?>" type="hidden">

        <input type="submit" value="Envoyer">
    </form>


</body>

</html>