Jump to content
mohammad2232

form error

Recommended Posts

3 options

1) PHP validation, this should be always done, even if using below options, as JavaScript can be disabled, and html amended.

2) html, add 'required' attribute to inputs.

3) JavaScript validation, use this method to validate inputs before submitting, this is a more user friendly option, but JS can be disabled, allowing invalid input content through, that is why PHP validation is always necessary.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×