コード例 #1
0
ファイル: addCandidate.php プロジェクト: pathprabu/web_voting
<?php

require_once "../libraries/classes/config.php";
require_once '../libraries/classes/clsCandidate.php';
$candidate = new Candidate();
if (!empty($_GET["id"]) and !empty($_POST["position"])) {
    $candidate->addCandidate($_GET["id"], $_POST["position"]);
}
echo "<br>";
echo "Record Added";