User 用 browser console 改 optionList value

提示: 作者被禁止或刪除 內容自動屏蔽

如果個optionlist 有一千個option, 咁唔比user 用browser 改value, backend validation 係咪要hardcode che ...
undplayer 發表於 2016-4-5 14:27


backend validation 整個ARRAY 儲住D可以接受既VALUE,
之後SUBMIT個陣 CHECK個VALUE係咪係個ARRAY入面其中1個elements
是就GO TO NEXT
不是就彈ERROR MESSAGE

TOP

回覆 1# undplayer

backend-side check is actual validation.
client-side check is for hint, and UX

never rely on client-side for validation as user(or bots) can always modify or forge client-side request.

TOP