Mozilla 1.3, fonts και javascript.

Yannis Kotsinos zookie at med.auth.gr
Fri Apr 18 14:36:01 EEST 2003


On Friday 18 April 2003 14:13, you wrote:

> >>>Ο κώδικας που χρησιμοποιούσα μέχρι τώρα και παίζει παντού για να ελέγξω
> >>>το value του input είναι:
> >>>
> >>>	if (document.koko.lala.value = "") {
> >>
> >>	if (document.koko.lala.value == "") {

> Telika poios einai o kwdikas pou den paizei?

function checkForm() {
	if (document.inputForm.uname.value == "" ) {
		alert("Please fill in your username");
		return false;
	}
	else if ( document.inputForm.passwd.value == "" ) {
		alert("Please fill in your Password");
		return false;
	}
	else {
		return true;
	}
}

<form action="<?= $processlogin ?>" method="post" name="inputForm">
<input type="text" name="uname" size="20">
<input type="text" name="passwd" size="20">
<input type="button" value="Submit"
	onClick="javascript: if (checkForm()) { document.inputForm.submit(); }">
</form>

> >>Gvre

-- 
"Take care of the little things and the big things will tend to take care of 
themselves"
Running FreeBSD 4.7-STABLE | mailto:zookie at med.auth.gr
2:21μμ up 14 days, 1:02, 1 user, load averages: 0,15 0,05 0,03




More information about the Linux-greek-users mailing list