Mozilla 1.3, fonts και javascript.
Giannis Vrentzos
gvre at forthnet.gr
Fri Apr 18 14:55:02 EEST 2003
Yannis Kotsinos wrote:
> 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">
Gia dokimase na valeis sto form to onsubmit="return checkForm()"
> <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(); }">
Vgale to input type="button" kai vale to
<input type="submit" value="submit">
> </form>
>
More information about the Linux-greek-users
mailing list