PHP100 2019-03-27
代码如下:
<script type="text/javascript"> function formValidate(f) { if (document.formvalidator.isValid(f)) { f.check.value='<?php echo JUtility::getToken(); ?>';//send token return true; } else { alert('Some values are not acceptable. Please retry.'); } return false; } </script>
代码如下:
<form ... onsubmit="return formValidate(this)">
代码如下:
document.formvalidator.setHandler('passverify', function (value) { return ($('password').value == value); }); <input type="password" value="" class="validate-passverify" />