hi Andreas
punkt für dich :)
bin einfach überarbeitet und betriebsblind...
so long
ole
(8-)>
geht nicht, mäh
<html><head><title>Test</title>
<script language="javascrip">
function chkFormular()
var chkZ = 1;
for(i=0;i<document.Formular.PLZ.value.length;++i)
if(document.Formular.PLZ.value.charAt(i) < "0"
|| document.Formular.PLZ.value.charAt(i) > "9")
chkZ = -1;
if(chkZ == -1)
{
alert("Ungültige Postleitzahl!");
document.Formular.PLZ.focus();
return false;
}
if(document.Formular.PLZ.value.length != 5)
{
alert document.Formular.PLZ.value + " ist keine fünfstellige PLZ.")
return false;
}
</script>
</head>
<body><form name="Formular" action="suche4.php" onSubmit="return chkFormular()" method="post">
<select name="Vertriebsl">
<option value="Vertriebsl">Alle</option>
<option value="Bau- und Gartencenter">Bau- und Gartencenter</option>
<option value="Direkt">Direkt</option>
<option value="Sky">Sky</option>
<option value="Plaza">Plaza</option>
<option value="SEH">SEH</option>
<option value="Wandmaker">Wandmaker</option>
</select>
PLZ: <input type="text" name="PLZ" value="" maxlength="5" size="5" /><br />
<input type="submit" name="submit_button" value="Suchen" />
</body>
</html>