Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Page extends CI_Controller{
- public function index(){
- $this->load->view('form');
- }
- public function cek_validasi(){
- $this->load->library('form_validation');
- $this->form_validation->set_rules('nama', 'nama', 'trim|required');
- if ($this->form_validation->run() == FALSE) {
- $this->index();
- }else {
- echo "data aman";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement