Java Reference
In-Depth Information
{
alert(“I'm sorry, but “ + emailValue +
“ is in use by another user.”);
return false;
}
//If the code's made it this far, everything's good
return true;
}
function request_onfailure(request)
{
alert(“An error occurred. HTTP Status Code: “ + request.status);
}
function getBasicOptions()
{
var options = new Object();
options.method = “get”;
options.onFailure = request_onfailure;
options.url = “formvalidator.php”;
options.async = false;
return options;
}
</script>
</head>
<body>
<form onsubmit=”return form_submit()”>
<table>
<tr>
<td class=”fieldname”>
Username:
</td>
<td>
<input type=”text” id=”username” />
</td>
</tr>
<tr>
<td class=”fieldname”>
Email:
</td>
<td>
<input type=”text” id=”email” />
</td>
</tr>
<tr>
<td class=”fieldname”>
Password:
</td>
<td>
<input type=”text” id=”password” />
</td>
</tr>
Search WWH ::




Custom Search