Example #1
0
<?php

require_once 'classes.php';
//$array = array($_GET["author"], $_GET["title"], $_GET["preview"], $_GET["content"], 0);
$array = array($_POST["author"], $_POST["title"], $_POST["preview"], $_POST["content"], $_POST["timestamp"]);
$new_post = new blogObject($array);
$success = $new_post->store();
echo $success;