Home  >  Article  >  Backend Development  >  Codeigniter's method of detecting form post data, codeigniterpost_PHP tutorial

Codeigniter's method of detecting form post data, codeigniterpost_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:02:091085browse

Codeigniter's method of detecting form post data, codeigniterpost

This article describes the example of Codeigniter's method of detecting form post data. Share it with everyone for your reference. The details are as follows:

$name = $this->input->post(' name' ) ;
$email = $this- >input->post( ' email' ) ;
$subj ect = $this->input->post( ' subject' ) ;
$message = $this->input->post( ' message' ) ;
if(empty($name) OR empty($email) OR empty($subject) OR empty($message))
{
 show_404 ("Please go back and fill in all of the fields. " ) ;
}

I hope this article will be helpful to everyone’s PHP programming based on Codeigniter.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/970969.htmlTechArticleCodeigniter’s method of detecting form post data, codeigniterpost This article describes how Codeigniter detects form post data. Share it with everyone for your reference. The details are as follows: $nam...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn