zoldos
Well-known member
The below code is kind of what I need. It works, but I can't seem to incorporate it, or something similar, into my 1.5.16a registration system. Basically, I just need to require new members input an "access code" somewhere during the signup process, and not allow them to continue unless it is correct.
Can can anyone point me in the right direction and/or help? Thanks!
Can can anyone point me in the right direction and/or help? Thanks!
Code:
<script>
function validateForm() {
var x = document.forms["myForm"]["fname"].value;
if (x != "QuadNode1") {
alert("Wrong Access Code!");
return false;
}
}
</script>
<form name="myForm" action="" onsubmit="return validateForm()" method="post">
<span style="color:white;">Access Code:</span>
<span style="color:white;">{xen:phrase required}
<input type="text" name="fname" size="8">
</form>