How to create a secure Contact Form (cf) using CodeIgniter -
i want create secure cf using codeigniter. i'm new using codeigniter. library should use or should create 1 formhelper , emailhelper. also, if go creating 1 helpers, how can spams taken care of?
cis form helper automatically escape data submitted secure it, although can specify additional functions/purifying etc using form validation class
ie
$this->form_validation->set_rules('username', 'username', 'required|xss|trim');
as custom call functions.
as spam, can use built in captcha library, "ok" not fantastic. there's plenty of documentation out there implement recaptcha instead.
in short you'll want form helper, form validation library, email helper , possibly captcha plugin or extension.
Comments
Post a Comment