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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -