entry->hp<20) { $xml->entry->hp++; } if (isset($_GET['hp_moins']) && $xml->entry->hp>0) { $xml->entry->hp--; } $xml->asXml('../medias/'.$hash.'/enemy/'.$nom_modif.'.xml'); header("location: index.php"); ?>