<?php session_start();
include 'procesing.php';
$db = new wap();
$act = $_GET['act'];
if($act == "baru"){
$db->tersimpan($_POST['a'],$_POST['b'],$_POST['c'],$_POST['d'],$_POST['e'],$_POST['f']);
header("location:index.php");
}
if($act == "hapus"){
$db->terhapus($_GET['ic']);
header("location:index.php");
}
?>