</style> </head> <body> <?php $weapon_name = "default_weapon"; $dice_result = 0; $player = 1; if (isset($_POST["endturn"])) { $player = $_POST["player"] == 1 ? 2 : 1; } if (isset($_POST["dice_submit"])) { $dice_result = rand(1, 6); $player = $_POST["player"]; } if (isset($_POST["move"])) { $board->move($ship, $_POST["move"]); } ?> Tour de Joueur <?php echo $player; ?> <br /> <form method="post" action="grid.php"> Se deplacer de : <input type="text" size="2" name="move" /> <input type="submit" name="submit" value="OK"/> <br/> </form> <form method="post" action="grid.php">