<html> <head> <script LANGUAGE="JavaScript"> <!-- function checkform ( form ) { // ** START ** if (form.email.value == "") { alert( "Podaj jeszcze swój adres pocztowy." ); form.email.focus(); return false ; } // ** END ** return true ; } //--> </SCRIPT> </head> <body> <form enctype="text/plain" action="mailto:jan.kowalski@mojafirma.pl" method="post" onsubmit="return checkform(this);"> <BR> <input type="text" name="email"> <BR> <input type="text" name="imie"> <BR> <INPUT TYPE="submit" VALUE="Wyślij formularz"> </form> </body> </html>
Czyli jeszcze raz chce zmienić tak ten kod żeby nie tylko wymuszał on wpis w pole "email" ale jeszcze w pole "imie".