|
Post by along on Oct 16, 2005 20:48:46 GMT -5
Digunakan utk pengesahan form ----------------------------------------------------------------- function goGenerate() { var themessage = "Sila isi maklumat pengguna yang di kehendaki."; var form = document.myform; form.action.value = 'add_pengguna';
if (form.fuserid.value == "") themessage = themessage+"\n-Sila masukkan userid pengguna !.";
if (form.fname.value == "") themessage = themessage+"\n-Sila masukkan nama pengguna !.";
if (form.fpasswd.value == "") themessage = themessage+"\n-Sila masukkan kata laluan pengguna !.";
if (form.enable.value == "") themessage = themessage+"\n-Sila masukkan status pengguna !.";
if (themessage == "Sila isi maklumat pengguna yang di kehendaki") form.submit(); else { alert(themessage); return false; }
}
|
|
|
Post by along on Oct 17, 2005 1:50:28 GMT -5
syarat bg masukkan charactor ___________________________________
if (form.fuserid.value == "") { themessage = themessage+"\n-Sila masukkan userid pengguna !."; }else if (form.fuserid.value.length < 6) { themessage = themessage+"\n-Karaktor Userid mestilah lebih daripada 5, sila masukkan semula";
}
|
|