codeigniter load form_validation
<?php
class Form extends CI_Controller {
public function index()
{
$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
if ($this->form_validation->run() == FALSE)
{
$this->load->view('myform');
}
else
{
$this->load->view('formsuccess');
}
}
}
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email');
Also in PHP:
- check string exist in string php
- can i refresh page in php
- array_key_exists numerical
- create model, controller and migration in single command laravel
- exec output php
- !array_key_exists($id, $this->items)
- check if substring in php
- DATE_FORMAT(STR_TO_DATE
- echo in json format
- eader("Location
- cacert.pem file_get_contents openssl
- check if key exist in php
- current date format in php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) laravel
- create new laravel project 8
- date 'F' what is it
- check string length in php
- Column not found: 1054 Unknown column 'updated_at'
- PHP Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt()
- check if php string contains
- associative array in one key in value must unique in array check in php
- Codeigniter count query results
- Library not loaded: /usr/local/opt/icu4c/lib/libicuio.64.dylib Referenced from: /usr/local/bin/php
- errors register