Parašė bruzgis· 2008 Bal. 29 18:04:57
geriau ne taip. o :
echo "<script language='JavaScript'>
function ValidateForm(frm) {
if (frm.username.value==\"\") {
alert(\"".$locale['550']."\");
return false;
}
if (frm.password1.value==\"\") {
alert(\"".$locale['551']."\");
return false;
}
if (frm.email.value==\"\") {
alert(\"".$locale['552']."\");
return false;
}
if (frm.user_yahoo.value==\"\") {
alert(\"".$locale['552']."\");
return false;
}
}
</script>";
tada dar form turetu taip atrodyt:
<form name='inputform' method='post' action='".FUSION_SELF."' onSubmit='return ValidateForm(this)'>