SlideShare a Scribd company logo
Your controller should now look like this



<?php



class Form extends CI_Controller {



        function index()

        {

                $this->load->helper(array('form', 'url'));



                $this->load->library('form_validation');



                $this->form_validation->set_rules('karanchanana', 'Karanchanana', 'required');

                $this->form_validation->set_rules('password', 'Password', 'required');

                $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required');

                $this->form_validation->set_rules('email', 'Email', 'required');



                if ($this->form_validation->run() == FALSE)

                {

                           $this->load->view('myform');

                }

                else

                {

                           $this->load->view('formsuccess');

                }
}

}

?>

More Related Content

PDF
Sample php notification
DOCX
PPTX
14. CodeIgniter adaugarea inregistrarilor
PDF
次世代版 PowerCMS 開発プロジェクトのご紹介
PDF
PowerCMS X
PDF
Gravity Forms Hooks & Filters
PPTX
WordPress overloading Gravityforms using hooks, filters and extending classes
PDF
TestFest - Respect\Validation 1.0
Sample php notification
14. CodeIgniter adaugarea inregistrarilor
次世代版 PowerCMS 開発プロジェクトのご紹介
PowerCMS X
Gravity Forms Hooks & Filters
WordPress overloading Gravityforms using hooks, filters and extending classes
TestFest - Respect\Validation 1.0

What's hot (20)

PDF
SQL so close I can paste it (YAPC::NA::2011 lightning talk)
TXT
PPTX
17. CodeIgniter login simplu cu sesiuni
PDF
Practica csv
PDF
Php tour 2018 un autre regard sur la validation (1)
PDF
Les exceptions, oui, mais pas n'importe comment
PPTX
5. hello popescu
KEY
Keeping It Simple
KEY
Who Needs Ruby When You've Got CodeIgniter
PPTX
PPT
Slimme Joomla! Templating Tips en Truuks
PPTX
Web development today
PDF
The command dispatcher pattern
PPTX
16. CodeIgniter stergerea inregistrarilor
DOCX
Table through php
DOCX
PL/SQL Blocks
PPT
Clever Joomla! Templating Tips and Tricks
PPTX
Magento Dependency Injection
PPTX
24. CodeIgniter simple login with sessions
PPTX
Database Management - Lecture 4 - PHP and Mysql
SQL so close I can paste it (YAPC::NA::2011 lightning talk)
17. CodeIgniter login simplu cu sesiuni
Practica csv
Php tour 2018 un autre regard sur la validation (1)
Les exceptions, oui, mais pas n'importe comment
5. hello popescu
Keeping It Simple
Who Needs Ruby When You've Got CodeIgniter
Slimme Joomla! Templating Tips en Truuks
Web development today
The command dispatcher pattern
16. CodeIgniter stergerea inregistrarilor
Table through php
PL/SQL Blocks
Clever Joomla! Templating Tips and Tricks
Magento Dependency Injection
24. CodeIgniter simple login with sessions
Database Management - Lecture 4 - PHP and Mysql
Ad

Viewers also liked (10)

DOCX
DOCX
Karan chanan
DOC
Karanchanana
DOCX
Karan.chanana|css-rules
DOCX
Karan chanana
DOCX
Karanchanana karan-solution
PDF
Karanchanana
DOCX
Karan chanana
PDF
Karan chanana-1
PDF
Institute list
Karan chanan
Karanchanana
Karan.chanana|css-rules
Karan chanana
Karanchanana karan-solution
Karanchanana
Karan chanana
Karan chanana-1
Institute list
Ad

Similar to Karan validation-rules (20)

KEY
Data::FormValidator Simplified
PDF
Storytelling By Numbers
PDF
Mike King - Storytelling by Numbers MKTFEST 2014
ODP
PHPUnit elevato alla Symfony2
PDF
Your code sucks, let's fix it - DPC UnCon
PDF
Database Design Patterns
PPTX
23.simple login with sessions in laravel 5
PDF
Min-Maxing Software Costs
PDF
Bag Of Tricks From Iusethis
KEY
究極のコントローラを目指す
PDF
You code sucks, let's fix it
PDF
Silex meets SOAP & REST
PDF
PHPUnit でよりよくテストを書くために
PDF
Unit testing after Zend Framework 1.8
PPTX
7. Lower upper in Laravel
PPTX
What mom never told you about bundle configurations - Symfony Live Paris 2012
 
PDF
Apostrophe
PDF
WordPress REST API hacking
PPT
Mocking Dependencies in PHPUnit
PDF
Unit and Functional Testing with Symfony2
Data::FormValidator Simplified
Storytelling By Numbers
Mike King - Storytelling by Numbers MKTFEST 2014
PHPUnit elevato alla Symfony2
Your code sucks, let's fix it - DPC UnCon
Database Design Patterns
23.simple login with sessions in laravel 5
Min-Maxing Software Costs
Bag Of Tricks From Iusethis
究極のコントローラを目指す
You code sucks, let's fix it
Silex meets SOAP & REST
PHPUnit でよりよくテストを書くために
Unit testing after Zend Framework 1.8
7. Lower upper in Laravel
What mom never told you about bundle configurations - Symfony Live Paris 2012
 
Apostrophe
WordPress REST API hacking
Mocking Dependencies in PHPUnit
Unit and Functional Testing with Symfony2

More from karan chanana (11)

PDF
Karan.chanana
DOC
Karan chanana-collection
DOC
Karan chanana...
DOCX
Karan chanana
DOCX
karan chanana managing director karan chanana infosys
PDF
Karanchanana (amira basmati brands)
PDF
Amira business k chanana
PDF
Karanchanana amira basmati brands
DOCX
Karan chanana
DOCX
Karan chanana
DOCX
Karan.chanana | karan chanana
Karan.chanana
Karan chanana-collection
Karan chanana...
Karan chanana
karan chanana managing director karan chanana infosys
Karanchanana (amira basmati brands)
Amira business k chanana
Karanchanana amira basmati brands
Karan chanana
Karan chanana
Karan.chanana | karan chanana

Recently uploaded (20)

PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
1. Introduction to Computer Programming.pptx
PPTX
The various Industrial Revolutions .pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Hybrid model detection and classification of lung cancer
PDF
Architecture types and enterprise applications.pdf
PDF
Getting Started with Data Integration: FME Form 101
Zenith AI: Advanced Artificial Intelligence
1. Introduction to Computer Programming.pptx
The various Industrial Revolutions .pptx
Enhancing emotion recognition model for a student engagement use case through...
Developing a website for English-speaking practice to English as a foreign la...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Chapter 5: Probability Theory and Statistics
A contest of sentiment analysis: k-nearest neighbor versus neural network
WOOl fibre morphology and structure.pdf for textiles
Tartificialntelligence_presentation.pptx
Group 1 Presentation -Planning and Decision Making .pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Getting started with AI Agents and Multi-Agent Systems
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Programs and apps: productivity, graphics, security and other tools
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
1 - Historical Antecedents, Social Consideration.pdf
Hybrid model detection and classification of lung cancer
Architecture types and enterprise applications.pdf
Getting Started with Data Integration: FME Form 101

Karan validation-rules

  • 1. Your controller should now look like this <?php class Form extends CI_Controller { function index() { $this->load->helper(array('form', 'url')); $this->load->library('form_validation'); $this->form_validation->set_rules('karanchanana', 'Karanchanana', 'required'); $this->form_validation->set_rules('password', 'Password', 'required'); $this->form_validation->set_rules('passconf', 'Password Confirmation', 'required'); $this->form_validation->set_rules('email', 'Email', 'required'); if ($this->form_validation->run() == FALSE) { $this->load->view('myform'); } else { $this->load->view('formsuccess'); }