<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Enviar Datos</title>
</head>
<body>
<form action="procesaDatos.php" method="post">
Nombre:
<br>
<input type="text" name="nombre">
<br>
<input type="submit" value="buscar">
</form>
<?php
$nombre=$_POST['nombre'];
echo "tu nombre es:", $nombre;
?>
Having this code, the html when testing it works correctly but the php file marks me:
Notice: Undefined index: name in C: \ xampp \ htdocs \ tests \ procesaDatos.php on line 3
your name is: