Is there any way to perform client side form validation when JavasSript is disabled in browser?
Asked
Active
Viewed 1,847 times
2
-
no there is not. only server side. – Royi Namir Nov 23 '11 at 13:11
-
1Without use of plug-ins or the new HTML5 input types (eg ``), no. – Rob W Nov 23 '11 at 13:12
-
1check this link may help you http://stackoverflow.com/questions/2056448/is-it-possible-to-have-client-side-validation-without-javascript – noobie-php Nov 23 '11 at 13:12
-
1May be using server side validation when javascript is disabled will fit your requirements. – Artsiom Anisimau Nov 23 '11 at 13:14
-
1You should **never ever** rely on client side validation. – Jan Dragsbaek Nov 23 '11 at 13:13
-
I don't. Client side- Server side - Database Data Integrity constraints. right! – Nov 23 '11 at 13:17
2 Answers
6
HTML 5 introduces some validation features (limited browser support), but other than that — no.
However, you shouldn't worry too much about it since:
- most users will have JS supporting browsers with JS enabled
- you need to have have server side validation in place (since client side validation can save users from making mistakes, but it can't prevent malicious attacks) and if JS isn't available, then it will simply fall back to the server and you get the same result with just an extra HTTP request added.

Quentin
- 914,110
- 126
- 1,211
- 1,335
1
There's HTML5 form validation, and AFAIK Opera supports it even if client-scripting is disabled. See: