Exemplo n.º 1
0
<?php

require_once 'dbutil.php';
$db = new DbUtil();
$amount = $_POST['amount'];
$desc = $_POST['desc'];
$players = $_POST['sel'];
$db->addEP($amount, $players, $desc);
if (strpos($_SERVER['HTTP_REFERER'], "?success")) {
    header('Location: ' . $_SERVER["HTTP_REFERER"]);
} else {
    header('Location: ' . $_SERVER["HTTP_REFERER"] . "?success");
}