Last active
August 29, 2015 14:01
-
-
Save fabianomaximiano/0d8cb5e5f3ffac9566f9 to your computer and use it in GitHub Desktop.
erro
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
<h2>Bem vindo!</h2> | |
<p>Conteudo impróprio para menores de 18 anos!</p> | |
<p>Deseja continuar?</p> | |
<form method="post"> | |
<input type="submit" name="sim" value="sim"> | |
</form> | |
<?php | |
if(isset($_POST['sim']) and $_POST['sim'] == "sim"){ | |
$_SESSION['maior_idade'] = "sim"; | |
}//esta dando erro aqui!! | |
if(isset($_SESSION['maior_idade'])){ | |
?> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Site ...</title> | |
</head> | |
<body> | |
//Conteudo do Site | |
<body> | |
</html> | |
<?php } | |
//} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment