<?php
include 'db.php';

if(isset($_POST['save'])) {

$sql = "INSERT INTO domains
(domain_name,email_id,server_name,server_location,server_password,user_id,start_date,expiry_date,renewal_date,client_name,client_mobile,client_address)
VALUES
(
'$_POST[domain_name]',
'$_POST[email_id]',
'$_POST[server_name]',
'$_POST[server_location]',
'$_POST[server_password]',
'$_POST[user_id]',
'$_POST[start_date]',
'$_POST[expiry_date]',
'$_POST[renewal_date]',
'$_POST[client_name]',
'$_POST[client_mobile]',
'$_POST[client_address]'
)";

mysqli_query($conn,$sql);
header("location:index.php");
}
?>
