Created
July 25, 2019 03:48
-
-
Save parzibyte/4598afe3050a6dd112ddb7377bb17100 to your computer and use it in GitHub Desktop.
Saber si checkbox fue marcado https://parzibyte.me/blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nombre = $_POST["nombre"]; | |
echo "Hola, $nombre<br>"; | |
# Para saber si el checkbox fue marcado | |
# comprobamos si existe en $_POST | |
if (isset($_POST["terminos_condiciones"])) { | |
echo "Aceptaste los términos :)"; | |
} else { | |
echo "NO Aceptaste los términos :("; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment