Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1.       $post = new Validate($_POST);
  2.  
  3.       $post->rule('first_name', 'not_empty');
  4.      
  5.       if ($post->check())
  6.       {      
  7.       // Data has been validated, add the lead
  8.         $lead->add($post);
  9.  
  10.       // Redirect after a successful POST
  11.         $this->request->redirect('/');
  12.       }
  13.       else
  14.       {
  15.         print 'nope';
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement