hocam action ile bu sayfaya gidiyor.
action="settings/edit-process.php"
settings/edit-process.php sayfasına bunu koyun çalışır.
if (isset($_POST['addreservation'])) { $id=$_POST['id'];
$ayarekle=$db->prepare("INSERT INTO reservations SET
id=:id,
date=:date,
fullname=:fullname,
phone=
hone,
mail=:mail,
room=:room,
pax=
ax,
hour=:hour,
notes=:notes,
source=:source,
source_name=:source_name,
reservation_agent=:reservation_agent,
status=1
");
$insert=$ayarekle->execute(array( 'id' => $_POST['id'],
'date' => $_POST['date'],
'fullname' => $_POST['fullname'],
'phone' => $_POST['phone'],
'mail' => $_POST['mail'],
'room' => $_POST['room'],
'pax' => $_POST['pax'],
'hour' => $_POST['hour'],
'notes' => $_POST['notes'],
'source' => $_POST['source'],
'source_name' => $_POST['source_name'],
'reservation_agent' => $_POST['reservation_agent'] ));
if ($insert) { Header("Location:../reservations.php?status=ok");
} else { $a= error_reporting(E_ALL);
echo $a;
} }