<?php
include "config.php";

if(isset($_POST['simpan'])){
    $domain = $_POST['domain'];
    mysqli_query($conn,"INSERT INTO domains(domain) VALUES('$domain')");
    header("Location: dashboard.php");
}
?>

<form method="post">
<input name="domain" placeholder="domain.com">
<button name="simpan">Tambah</button>
</form>