This article mainly introduces Codeigniter's method of detecting form post data. The example analyzes the skills of Codeigniter in obtaining and detecting post data, which has some reference value. For more information, see
This article mainly introduces Codeigniter's method of detecting form post data. The example analyzes the skills of Codeigniter in obtaining and detecting post data, which has some reference value. For more information, see
This article describes how Codeigniter detects form post data. Share it with you for your reference. The details are as follows:
$ Name = $ this-> input-> post ('name'); $ email = $ this-> input-> post ('email '); $ subj ect = $ this-> input-> post ('subobject'); $ 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 help you with Codeigniter-based php programming.
,