Answers for "how to persist values in form after incorrect input html"

PHP
1

how to mantain text in form after error php

<input type="text" id="name" name="name" value="<?php echo isset($_POST["name"]) ? $_POST["name"] : ''; ?>">
Posted by: Guest on December-22-2020
0

input show validation message

// Validate emai

var applicationForm = document.getElementById("applicationForm");    
if (applicationForm.checkValidity()) {
  applicationForm.submit();
} else {
  applicationForm.reportValidity();
}
Posted by: Guest on November-24-2020

Code answers related to "how to persist values in form after incorrect input html"

Browse Popular Code Answers by Language