Difference between revisions of "Profile data validation"
From MyWiki
(Created page with "<source lang="php"> <input type="password" name="pass" id="id_1723"> <input type="submit" onclick="return doValidate();" value="Log In"> function doValidate() { console....") |
(No difference)
|
Latest revision as of 10:42, 8 December 2018
<input type="password" name="pass" id="id_1723"> <input type="submit" onclick="return doValidate();" value="Log In"> function doValidate() { console.log('Validating...'); try { pw = document.getElementById('id_1723').value; console.log("Validating pw="+pw); if (pw == null || pw == "") { alert("Both fields must be filled out"); return false; } return true; } catch(e) { return false; } return false; } </php>