I have a form in which I want to disable the submit button if there are any characters other than A-Z, a-z, and 0-9.
What I have now is...
<form name=form action=process.cgi method=POST />
<input type=text name=field1 />
<input type=password name=field2 />
<input type=submit value=submit />
</form>
I am trying to make it so that the details are not submitted untill field1 and field2 only have A-Z, a-z, and 0-9