Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Potrojne wyswietlanie
sylsaw
post 20.07.2005, 10:22:50
Post #1





Grupa: Zarejestrowani
Postów: 62
Pomógł: 0
Dołączył: 29.06.2005

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


mam taki problem, jest trzech uzytkownikow, i na dole kodu mam linki do innych podstron i na ekeranie wyswietlaja mi sie potrojnie , nie moge tego zlikwidowac


  1. <body LINK=\"black\" VLINK=\"black\" ALINK=\"blue\" bgcolor=\"#CCCCCC\" leftmargin=\"20\" topmargin=\"50\"> <font size=\"6\" face=\"'Comic Sans MS'\"><center><b>Podales zly login lub haslo</b></center></font>
  2. <?php
  3. $login[0]='x';
  4. $haslo[0]='x1;
  5. $login[1]='xx';
  6. $haslo[1]='x2';
  7. $login[2]='xxx';
  8. $haslo[2]='xxxx';
  9. for ($i=0;$i<3;$i++)
  10. if($login[$i]==$_POST[\"podany_login\"]&&$haslo[$i]==$_POST[\"podane_haslo\"]) {
  11. setcookie(\"log\", TRUE, time()+3600*24);
  12. header(\"location: edycja.html\");
  13. }
  14. else {
  15. //header(\"location: logowanie.html\");
  16. //echo (\"Podałes zły login lub hasło.\");
  17. echo '<FORM ACTION=&#092;"index.htm\">
  18. <P ALIGN=&#092;"right\"><INPUT TYPE=\"submit\" VALUE=\"Strona Główna\"></P></FORM>';
  19. echo '<FORM ACTION=\"logowanie.html\">
  20. <P ALIGN=\"right\"><INPUT TYPE=\"submit\" VALUE=\"Logowanie\"></P></FORM>';
  21.  
  22. }
  23. ?>
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 Wersja Lo-Fi Aktualny czas: 25.07.2025 - 09:59