![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 548 Pomógł: 105 Dołączył: 4.06.2010 Ostrzeżenie: (0%) ![]() ![]() |
Hej. mam zainstalowanegp xamppa i mam mały problem z sesjami.
chodzi o to ze nie moge przechwycić w innym pliku danych zapisanych w coocies w tym pliku chce przekazać dane <?php session_start(); $pol=mysql_connect("localhost", "root",""); mysql_select_db("galeria" , $pol); $log="select login, haslo from loginy where login='$_POST[login]' and haslo='$_POST[haslo]' " ; if ( $wynik=mysql_query($log , $pol)){ echo "Dziekujemy za zalogowanie"; $_session['osobiste']="$_POST[login]"; echo "<a href=\"po_zalogowaniu.html\">dalej</a> "; // print $_session['osobiste']; } else{ echo "Zly login lub haslo"; } ?> a w tym odebrac <?php session_start(); ?> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=iso-8859-2"> <link rel="stylesheet" href="styl_galerii.css"> </head> <body> <div style=" width:1250px; height:100px"> <center><h1>jesteś zalogowany jako <?php print $_session['osobiste']; ?> </h1> </center> moze coś zrobiłem żle |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 15:49 |