Exemple #1
0
<?php

namespace App\Modules\mod_booking;

use App\Validation;
use App\Booking;
use App\Rooms;
$fields = Validation::NotEmpty($_POST);
if ($fields && isset($_POST['submit'])) {
    $fields_array = Validation::Filter($fields);
    if ($fields_array) {
        Booking::Insert($fields_array);
        header("Location: index.php?pid=3");
    }
}
?>
<div class="wrapper">			
	<div id="form_container">
		<form id="bookForm"  method="post" action="" class="validate">
			<div class="form_description">
				<h2>Hotel Reservation</h2>
			</div><!-- END of Book_Form -->

			<hr>
			<div class="form_element">
				<label class="labels" for="name">Firstname: </label>
				<input id="firstname" name="firstname"  type="text" maxlength="255" 
				value="" title ="Firstname required" /> 
			</div> 

			<div class="form_element">