-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathform.php
More file actions
31 lines (24 loc) · 685 Bytes
/
form.php
File metadata and controls
31 lines (24 loc) · 685 Bytes
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
<?php
session_start();
//If the id is not set
if( !isset($_SESSION['id']) || $_SESSION['id'] == '' ){
header('Location: landing.php');
}
?>
<html>
<head>
<title>Form</title>
</head>
<body>
<h1>Form</h1>
Registro #<?php echo $_SESSION['id']; ?> - Reservacion id <?php echo $_SESSION['token']; ?>
<form method="POST" action="reserva.php">
Email: <input type="text" name="email" /><br />
Nombre: <input type="text" name="nombre" /><br />
Tel: <input type="text" name="tel" /><br />
<input type="hidden" name="id" value="<?php echo $_SESSION['id']; ?>" />
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>" />
<button>Send</button>
</form>
</body>
</html>