37 lines
969 B
PHP
37 lines
969 B
PHP
<?php
|
|
require 'common.php';
|
|
require 'loginRequired.php';
|
|
?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<title>Message Confirmation</title>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
|
<link rel="stylesheet" type="text/css" href="styling.css">
|
|
</head>
|
|
<body>
|
|
<!--#include virtual="header.html" -->
|
|
<!--#include virtual="topNavBar.html" -->
|
|
<style>
|
|
body {
|
|
background-color: #3B5998;
|
|
}
|
|
</style>
|
|
|
|
<?php
|
|
try{
|
|
//$query = "Insert into messages (sender, recipient, message, date, haveread) values('".$_SESSION["loggedInUser"]."', '".$_POST["name"]."', '".$_POST["message"]."', NOW(), 'N')";
|
|
//$db_connection->query($query)
|
|
|
|
print("Message Has been sent");
|
|
}
|
|
catch(Exception $e){
|
|
echo "Exception: ".$e->getMessage().PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
|
|
</body>
|
|
</html>
|