Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]niewiadoma, korzysta czy nie z CSS
Andrzej_INF
post
Post #1





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 4.01.2008

Ostrzeżenie: (10%)
X----


Mówię kumplowi że ten dokument korzysta z CSS a on twierdzi że nie
może ktoś to rozstrzygnie.
  1. <?php
  2. <html>
  3.  
  4.    <head>
  5.  
  6.    <title>Admin Login</title>
  7.  
  8.    <link href="admin.css" rel="stylesheet"  type="text/css">
  9.  
  10.    </head>
  11.  
  12.    <body>
  13.  
  14.    <script language="JavaScript">
  15.  
  16.    function checkFields() { missinginfo =  "";
  17.  
  18.    if (document.login.ausername.value ==  "") { missinginfo += "\n      -  Login"; }
  19.  
  20.    if (document.login.apassword.value ==  "") { missinginfo += "\n      -  Haslo"; }
  21.  
  22.    if (missinginfo != "") { missinginfo  = "Te pola sa pus:\n" + missinginfo + "\n";
  23.  
  24.    alert(missinginfo);
  25.  
  26.    return false;
  27.  
  28.    }
  29.  
  30.    else return true;
  31.  
  32.    }
  33.  
  34.    </script>
  35.  
  36.    <div id="menu_header">
  37.  
  38.    <h1>&nbsp;</h1><br>
  39.  
  40.    </div>
  41.  
  42.    <div id="content">
  43.  
  44.    <form action=""  method="post" name="login" onsubmit="return  checkFields();">
  45.  
  46.    <table align="center"  border="0" cellpadding="3" cellspacing="1"  width="300">
  47.  
  48.    <tbody><tr>
  49.  
  50.         <td width="98"  style="font-si:12px">Log:</td>
  51.  
  52.         <td width="187"><input name="ausername" size="15"  value="andrej" class="inputtext"  type="text"></td>
  53.  
  54.    </tr>
  55.  
  56.    <tr>
  57.  
  58.         <td style="font-si:12px">Haslo:</td>
  59.  
  60.         <td><input name="apassword"
  61.  
  62.    value="qw12qw" size="15"  class="inputtext" type="password"></td>
  63.  
  64.    </tr>
  65.  
  66.    <tr>
  67.  
  68.         <td>&nbsp;</td>
  69.  
  70.        <td><input name="Login"
  71.  
  72.    value="Zaloguj"  class="inputbutton" type="submit"></td>
  73.  
  74.    </tr>
  75.  
  76.    </tbody></table>
  77.  
  78.    </form>
  79.  
  80.    </div><div id="footer">
  81.  
  82.    </div>
  83.  
  84.    </body>
  85.  
  86.    </html>
  87. ?>


Ten post edytował Andrzej_INF 17.09.2008, 18:43:53
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 15:39