🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #39517

Sprawdzcie to prosze

#39517
From: Marzena
Date: Wed, 19 Apr 2006 15:09
31 lines
1705 bytes
Program ma sprawdzac poprawnosc hasla, ktore ma sie skladac z: od 5 do 10
znakow, jednej wielkiej litery i dwoch cyfr. Nie widze bledu.

<script language="JavaScript" type="text/javascript">
       <!--
       function spr()
{
wzor1=/^[a-z_.,;-]{5,10}$/
wzor2=/^[A-Z]{1}$/
wzor3=/^[0-9]{2}$/
if
((wzor1.test(document.form1.haslo.value)==true)&&(wzor2.test(document.form1.
haslo.value)==true)&&(wzor3.test(document.form1.haslo.value)==true)){alert("
poprawnie wpisane haslo")}
else {alert("NIE poprawnie wpisane haslo")};
}
 -->
</script>
</head>
<body>


Podaj haslo:<br>
<form name="form1"> <br>
<input name="haslo"> <br> <br>
<input type="button" value="OK" onclick="spr()">
</form>


</body>
</html>                                        Z gory dzieki !
Technical Details
Message-ID: <e25jfk$rfg$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Marzena" <myszeidas@op.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Sprawdzcie to prosze
Date: Wed, 19 Apr 2006 17:09:02 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 36
Message-ID: <e25jfk$rfg$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: cgc96.neoplus.adsl.tpnet.pl
X-Trace: atlantis.news.tpi.pl 1145458996 28144 83.30.230.96 (19 Apr 2006 15:03:16 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 19 Apr 2006 15:03:16 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2417.2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit