php - Why isn't my CodeIgniter Form Validation working? -
I am trying to set up verification on a simple contact form which is created using the form assistant. There is no recognition at all what is wrong? In the code below, the "good" keyword always shows, whether the form is entered in the form, and the saved values set by the set_value are never shown. > Controller // Contact function contact () {$ data ['pageTitle'] = "contact"; $ Data ['bodyId'] = "contact"; $ This- & gt; Load-> Library ('form_validation'); $ Config_rules = Array ('email' = & gt; 'required', 'message' = & gt; 'required'); $ This- & gt; Form_validation- & gt; Set_rules ($ config_rules); If ($ this-> form_validation-> run () == FALSE) {echo "bad"; $ Data ['include'] = "v_contact"; $ This- & gt; Load-> View ('v_template', $ data); } And {echo "good"; $ Data ['include'] = "v_conta...