Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Sesja
-Alakazam-
post
Post #1





Goście







Witam. Może mi ktoś powiedzieć czemu nie widać zmiennej $imie z sesji?

  1. <?php
  2. $_SESSION['imie']= "0";
  3. ?>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  7. <title> [asdasdasd </title>
  8.  
  9. </head>
  10. <body>
  11. <?php
  12. print($imie);
  13. $imie = "Adam"
  14. ?>
  15. <br /><br />
  16. <a href="?">Odswież</a>
  17.  
  18.  
  19. </body>
  20. </html>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-Gość-
post
Post #2





Goście







  1.  
  2. <?php
  3. $_SESSION['imie']= "0";
  4. ?>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  8. <title> [asdasdasd </title>
  9.  
  10. </head>
  11. <body>
  12. <?php
  13. print ($_SESSION['imie']);
  14. ?>
  15. <br /><br />
  16. <a href="?">Odswież</a>
  17.  
  18.  
  19. </body>
  20. </html>
  21.  
  22. A powiedz mi , jak teraz tą sesje dać do zmiennej ,żeby dać np, w kodzie inną nazwe która się wyświetli?
  23.  
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 3.10.2025 - 10:02