/
nuevo_album.php
49 lines (44 loc) · 1.33 KB
/
nuevo_album.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
<?php
include("sesionstart.php");
?>
<?php
include("include/cabecera.inc");
if(isset($_SESSION["user"])){
include("include/header_logged.inc");
} else {
include("include/header.inc");
}
include("include/nav.inc");
?>
<style>
<?php include 'CSS/main_registro.css';?>
</style>
<?php
if(isset($_SESSION["user"])){/*Si has iniciado sesion puedes ver esto*/
?>
<main>
<h1>New album</h1>
<form id="form_registro" action="anyadir_foto_album.php" method="GET">
<!--Register_Form-->
<label for="input_name_new">
<span>Title:</span>
</label><!-- User/email REGISTER -->
<input id="album" type="text" name="album" value="" placeholder="Title" required>
<br>
<label for="input_desc">
<span>Description:</span>
</label>
<input id="input_desc" type="text" name="input_desc" value="" placeholder="Description">
<br>
<!--Register_End-->
<span>
<button type="submit" name="input_submit" value="">Submit</button>
</span>
</form>
</main>
<?php
}else{/*Si no has iniciado sesion se te recomiendo iniciarla*/
echo '¡Vaya! parece que no estás loggeado <a href="registro.php">Accede ahora</a>';
}
require_once("include/fin.inc");
?>