<?php

class Model_mail extends CI_model
{
    public function addemail()
    {
        $data = [
            "nama" => htmlspecialchars($this->input->post('nama', true)),
            "email" => htmlspecialchars($this->input->post('email', true)),
            "phone" => htmlspecialchars($this->input->post('phone', true)),
            "pesan" => htmlspecialchars($this->input->post('pesan', true))
        ];

        $this->db->insert('contact', $data);
    }
}
