I am practicing the SESSION_START () in php.
I have an input where to enter names, and I want all the names entered to be saved in the same variable to create a list with all the names entered. This is the code ..
<form action="sesion.php" method="post">
<label>Nombre: </label><input type="text" name="nombre">
<br><br>
<input type="submit" name="BEnviar" value="Enviar">
</form>
<?php
SESSION_START();
$_SESSION['nombre'] = $_POST['nombre'];
$nombre = $_SESSION['nombre'];
echo "<li>$nombre</li>";
?>
Thank you!