mohammad2232 Posted December 24, 2017 Share Posted December 24, 2017 hello how can i change form error message ? https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_examples_contact when don't fill required field it show : please fill out this field how can i change it ? thanks Link to comment Share on other sites More sharing options...
dsonesuk Posted December 24, 2017 Share Posted December 24, 2017 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now