Need help for CSRF/XSS and form validation |
1. In CI4, how to escape data during form submission? If i need to escape tags or CSS codes, how to do this? I want to work with HtmlSanitizer.
2. My validation rules are: PHP Code: $rules = [ a) How to set name for the each input in error message? b) As i am submitting the form with AJAX, validation error always executing the success block with validation error message. Ajax is not getting the error headers. How to solve this? 3. How to set custom error header code and message in CI 4? Thanks in advance and sorry for too many questions. |
Messages In This Thread |
Need help for CSRF/XSS and form validation - by webdevron - 09-13-2019, 03:42 PM
RE: Need help for CSRF/XSS and form validation - by php_rocs - 09-13-2019, 07:49 PM
|