I have my php page in the first part of the page I have the declaration of the variables and their storage with the "name" that places them on the html page
<?php
include 'cn.php';
//recir los datos y almacenarlos en las variables
$nombre = $_POST["nombre"];
$apellidos = $_POST["apellidos"];
$correo = $_POST["correo"];
$usuario = $_POST["usuario"];
$clave = $_POST["clave"];
$telefono = $_POST["telefono"];
$cuenta = $_POST["cuenta"];
$idsemgrupo = $_POST["idsemgrupo"];
$curp = $_POST["curp"];
después hice la consulta insertar que es esta
//consulta para insertar
$insertar = "INSERT INTO alumnos( id, nombre, apellidos, correo, usuario, clave, telefono, cuenta, idsemgrupo, curp) VALUES (NULL, "$nombre", "$apellidos", "$correo", "$usuario", $clave, $telefono, "$cuenta", $idsemgrupo, "$curp")";
//ejecutar consulta
$resultado = mysqli_query($conexion, $insertar);
if(!$resultado){
echo 'Error al insertar Registros';
}
else{
'Registros insertdos correctamente';
}
//cerrar conexion
mysqli_close($conexion);
and it marks me error here
Parse error: syntax error, unexpected '$ name' (T_VARIABLE) in C: \ xampp \ htdocs \ project \ register.php on line 16
If you can help me I would thank you