input required

156

change input required text html -

<input type="text" id="username" required placeholder="Enter Name"
    oninvalid="this.setCustomValidity('Enter User Name Here')"
    oninput="this.setCustomValidity('')"  />

make all inputs required -

if ((empty($value) && $value != 0) && in_array($key, $required_fields) === true) {

Comments

Submit
0 Comments