<SCRIPT language=JavaScript>
function regKontrol(pattern, value)
{
r = new RegExp(pattern, "g");
return r.test(value);
}
function formKontrol(form)
{
patternEposta = "^"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"@"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"[\.]"+"([abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0-9_\.\-]+)"+"$";
if ( !regKontrol(patternEposta,form.email.value))
{
alert("Lütfen Doğru Bir E-posta Adresi Giriniz.");
form.email.value="";
form.email.focus();
return false;
}
return true;
}
</SCRIPT>
<form method="post" action="form_isle.html" name="frmKayitFormu" onsubmit="return formKontrol(this);">
<table width="100%" cellpadding="6" cellspacing="0" border="0">
<tr>
<td>E-Posta: </td>
<td><input type="text" name="email" maxlength="50"></td>
<td><input type="submit" value=" Gönder "></td>
</tr>
</table>
</form>