Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Also kinda anoying to have to duplicate this tho

Oh yes it is...

I once worked on a project where we had a tool that dynamically built client-side forms based on each customer's needs. After rolling it out for a big customer I discovered (after the original engineer responsible had already been fired for other reasons) that all of our dynamic forms had NO server side validation. none, zilch, nada.

We did have client side validation though, a good amount of it and nearly all of it was using native HTML features, and we had the whole form available server-side as well. So given that I was under a crunch, on form submission I loaded the HTML form server-side, manually iterated over all the elements and re-implemented the validation checks that were embedded in the HTML. Crazy times, but heck it was flexible!



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: