-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagen.php
63 lines (58 loc) · 1.05 KB
/
imagen.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
if(isset($_POST['img'])){
$img=$_POST['img'];
}else{
$img="null";
}
?>
<HTML>
<BODY>
<style type="text/css">
body{
font-family: helvetica;
background-image: url(img/inicio.jpg);
background-color: #000;
color: #fff;
}
nav {
display: inline-block;
}
</style>
<CENTER>
<img src="../img/logoBlanco.png">
<?php
if($img=="null"){
?>
<form action="imagen.php" method="POST" >
<table>
<caption>Edad:<caption>
<td>
<select name="img">
<option value="1">Mayor de 18</option>
<option value="2">Menor de 18</option>
</select>
</td>
<td><button type="submit" value="Entrar" >Entrar</button></td>
</table>
</form>
<?php
}else{
switch($img){
case 1:
header('Location: imagen/inicio.php');
break;
case 2:
echo '<script language="javascript">alert("Lo siento, no puedes ingresar");</script>';
break;
}
}
?>
<footer>
<nav>
<a class="3" href="http://shop.clubtorres.com/es/">Club Torres</a> |
<p>Posted by: Tania Ubaldo</p>
</nav>
</footer>
</CENTER>
</BODY>
</HTML>