pues hoy mi codigo corre bien y todo y no tengo ningun problema al usarlo el cual es este
Código PHP:
  
 <?php
include("conectar.php");
if(isset($_REQUEST['nombre'])){
    $n= $_REQUEST['nombre'];
     
    }
    if(isset($_REQUEST['edad'])){
    $e= $_REQUEST['edad'];
    mysqli_query($con,"INSERT INTO team VALUES (NULL,'$n','$e')");
    echo "<script> alert('Se inserto registro');</script>";
}
 
?>    Código HTML:
 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Base de datos</title> </head> <body> <h1>Gestion de Base de Datos</h1><hr> <form action="index.php" method="post"> <input type="text" name="nombre" placeholder="Introduce nombre" required><br> </form> <form action="index.php" method="post"> <input type="text" name="edad" placeholder="Introduce edad" required><br> <input type="submit" value="insertar"> </form> </body> </html>

dejo un link a una fotito para mayor informacion n.n
http://postimg.org/image/9etdzqloz/
 

