Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wielu uzytkownikow
sylsaw
post
Post #1





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

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


jak pod taki skrypt , przypisac np trzech uzytkownikow i kazdy zeby mial swoje haslo

  1. <?
  2. $login = sylwek;
  3. $haslo = sylsaw;
  4.  
  5. if($login==$_POST[&#092;"podany_login\"]&&$haslo==$_POST[\"podane_haslo\"]) {
  6. setcookie(&#092;"log\", TRUE, time()+3600);
  7. header(&#092;"location: edycja.html\");
  8. }
  9. else {
  10. echo(&#092;"Podałes zły login lub hasło.\");
  11. }
  12. ?>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
sylsaw
post
Post #2





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

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


  1. <?php
  2.  
  3. $login[0]='ss1';
  4. $haslo[0]='sss';
  5. $login[1]='ss2';
  6. $haslo[1]='ssss';
  7. $login[2]='ss3';
  8. $haslo[2]='sssss';
  9. for ($i=0;$i<3;$i++)
  10. if($login[$i]==$_POST[&#092;"podany_login\"]&&$haslo[$i]==$_POST[\"podane_haslo\"]) {
  11. setcookie(&#092;"log\", TRUE, time()+3600*24);
  12. header(&#092;"location: edycja.html\");
  13. }
  14.  
  15. else {
  16. echo (&#092;" Podałes zły login lub hasło.\");
  17.  
  18. }
  19. ?>


i chce wstawic takie cos
  1. <?php
  2. <body bgcolor=&#092;"#B0CEB5\" leftmargin=\"20\" topmargin=\"50\"> <font size=\"6\" face=\"Arial\"><center><b><u>Logowanie</u></b></center></font><br>
  3. ?>


jak wstawie na gorze jest ok kolor sie zienia ale wyskakuje blad i klapa
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: 10.10.2025 - 18:11