Tag: validation

56 votes
5 answers
1.5K views
Right HTTP status code to wrong input

What is optimal HTTP response Code when not reporting 200 (everything OK) but error in input? Like, you submi

avatar
Winford
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
1.9K views
A potentially dangerous Request.Form value was detected from the client

Every time a user posts something containing < or > in a page in my web application, I get this exceptio

avatar
Patsy
0 1 0 9
asked 07 September, 2021
62 votes
8 answers
2.2K views
yii: how to make a unique rule for two attributes

I have a table like this: (id, name, version, text). (name, version) is unique key, how can i make a rule to v

avatar
Robyn
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2.7K views
How to validate an email address in JavaScript

Is there a regular expression to verify an email address in JavaScript?

avatar
Leonardo
0 1 0 9
asked 07 September, 2021