<?php
include "conexion.php";
$id = $_GET['id'];
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    $nomusu = $_POST['nomusu'];
    $usu = $_POST['usu'];
    $conusu = $_POST['conusu'];
    
    $sql = "UPDATE usuario SET nomusu = ?, usu = ?, conusu = ? WHERE idusu = ?";
    $stmt = $conn->prepare($sql);
    $stmt->bind_param("sssi", $nomusu, $usu, $conusu, $id);
    $stmt->execute();
    $stmt->close();
}
$conn->close();
header("Location: usuario_moderno.php");
exit();
?>