SHARE
TWEET

Untitled

a guest Nov 19th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function cek() {
  2.     $nama = $this->input->post('nama');
  3.     $email = $this->input->post('email');
  4.  
  5.     if (empty($nama)) {
  6.         $this->session->set_flashdata('notif','<p style="color:red;"><b>Mohon isi nama anda</b></p>');
  7.  
  8.         redirect('captcha');
  9.     }
  10.  
  11.     if (empty($email)) {
  12.         $this->session->set_flashdata('notif','<p style="color:red;"><b>Mohon isi email anda</b></p>');
  13.  
  14.         redirect('captcha');
  15.     }
  16.  
  17.     echo "
  18.         <script>
  19.             alert('Terima kasih, data anda telah diterima.');
  20.             window.location='".base_url()."';
  21.         </script>
  22.     ";
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top