drzk21632 2012-06-23 07:15
浏览 26
已采纳

如何在CodeIgniter中禁用特殊字符

I have a Firstname and Lastname fields, I have set rules to 'required' but I want to both fields must only accept Letters not special characters or numeric. If user submit with special character or numeric i want to display an error message that user submit invalid characters.

  • 写回答

1条回答 默认 最新

  • dpyic24480 2012-06-23 07:17
    关注

    Add to the validation the alpha rule.

    Read more here under Rule Reference.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?