Home > Article > Backend Development > Codeigniter's method of detecting form post data, codeigniterpost_PHP tutorial
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.