<?php

session_start();
require_once 'dbutil.php';
$articlename = $_POST['articlename'];
$article = nl2br($_POST['article']);
$author = $_SESSION['gamerID'];
$db = new DbUtil();
$db->addArticle($author, $articlename, $article);
header('Location: ' . $_SERVER['HTTP_REFERER'] . '?success');