add basic post functionality
This commit is contained in:
16
website/public/API/postComment.php
Normal file
16
website/public/API/postComment.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
|
||||
require("../../queries/post.php");
|
||||
require("../../queries/connect.php");
|
||||
require("../../queries/checkInput.php");
|
||||
|
||||
if (empty($_POST['newcomment-content'])) {
|
||||
} else {
|
||||
makeComment($_POST['postID'],
|
||||
$_SESSION['userID'],
|
||||
test_input($_POST['newcomment-content']));
|
||||
}
|
||||
|
||||
header("Location: ../profile.php");
|
||||
Reference in New Issue
Block a user