Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] if($_GET
Turson
post 25.03.2011, 16:39:19
Post #1





Grupa: Zarejestrowani
Postów: 4 291
Pomógł: 829
Dołączył: 14.02.2009
Skąd: łódź

Ostrzeżenie: (0%)
-----


Mam kod
  1. <?PHP
  2. if($_GET["zmiana"]=="haslo"){echo "zmiana hasla";}
  3. if($_SESSION["zalogowany"]==1){
  4. echo "<table border=0><tr><td>
  5. <u>Zmiana hasla</u></td></tr><tr><td>
  6. <form action=?zmiana=haslo method=post>
  7. Nowe haslo :</td><td><input type=text size=30 name=haslo> </td><td><input type=submit value=Zmien class=button></form></td></tr>
  8. <tr><td><u>Zmiana e-maila</u></td></tr><tr><td>
  9. <form action=index.php?zmiana=mail method=post>
  10. Nowy adresu e-mail </td><td>:<input type=text size=30 name=mail> </td><td><input type=submit value=Zmien class=button></td></tr></table></form><br>
  11. ";}
  12. else {echo "Musisz byc zalogowany!";}
  13. ?>

Klikajac na button przy pierwszym inpucie nie zwraca tekstu "zmiana hasla" ..nie czaje
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: 19.07.2025 - 06:36