Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $post = new Validate($_POST);
- $post->rule('first_name', 'not_empty');
- if ($post->check())
- {
- // Data has been validated, add the lead
- $lead->add($post);
- // Redirect after a successful POST
- $this->request->redirect('/');
- }
- else
- {
- print 'nope';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement