php - How can make html values safe from change -
how can make html values safe change browsers
some examples
textarea
<textarea maxlength="50"></textarea>
any 1 can change maxlength value
and <a href="#" rel="15" >like</a>
1 can change rel value , rel value id of post
i use event.preventdefault();
on jquery
but need change value jquery help
thanks
basically way @ validation this:
client side validation - can used provide "instant" feedback user. way users have difficulty typing in many characters or invalid values. gives them feedback before move off data entry field can fix errors. others have said never substitute server validation
server side validation - actual validation. assume coming client suspect. need check "html" characters (if aren't escaping output later on pages). need check length of data. , of course need check other business rules might have. repeat: assume input suspect!
for familiar client/server programming may seem common sense, important keep in mind. hope helps some!
Comments
Post a Comment