Mówię kumplowi że ten dokument korzysta z CSS a on twierdzi że nie
może ktoś to rozstrzygnie.
<?php
<html>
<head>
<title>Admin Login</title>
<link href="admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<script language="JavaScript">
function checkFields() { missinginfo = "";
if (document.login.ausername.value == "") { missinginfo += "\n - Login"; }
if (document.login.apassword.value == "") { missinginfo += "\n - Haslo"; }
if (missinginfo != "") { missinginfo = "Te pola sa pus:\n" + missinginfo + "\n";
alert(missinginfo);
return false;
}
else return true;
}
</script>
<div id="menu_header">
<h1> </h1><br>
</div>
<div id="content">
<form action="" method="post" name="login" onsubmit="return checkFields();">
<table align="center" border="0" cellpadding="3" cellspacing="1" width="300">
<tbody><tr>
<td width="98" style="font-si:12px">Log:</td>
<td width="187"><input name="ausername" size="15" value="andrej" class="inputtext" type="text"></td>
</tr>
<tr>
<td style="font-si:12px">Haslo:</td>
<td><input name="apassword"
value="qw12qw" size="15" class="inputtext" type="password"></td>
</tr>
<tr>
<td> </td>
<td><input name="Login"
value="Zaloguj" class="inputbutton" type="submit"></td>
</tr>
</tbody></table>
</form>
</div><div id="footer">
</div>
</body>
</html>
?>
Ten post edytował Andrzej_INF 17.09.2008, 18:43:53