php - how to validate input id is equal to input data in html? -
i fresher. can validate data in input form id=entered data. if data wrong should change color of form. out j query, java script, ajax.
yes, can use html5 validate data, however recommended use example jquery validation since not browsers support html5 validation.
for example use simplified url-validator,
<input type="url" name="website" required pattern="https?://.+">
you use html5, jquery, java script etc on client side when want validate something. php on other hand use verify form data on server side, is, when data has been submitted form's action page.
Comments
Post a Comment