<?php ? include 'config.php'; $formularz = "<form method='post' action=''>login <input type='text' name='login' maxlenht='30' size='20'><br>hasło <input name='haslo' type='password' maxlenht='30' size='20'><br><input type='submit' value='zaloguj sie'></form>"; // //zmiennne // $login=$_POST['login']; $haslo=$_POST['haslo']; $c_login = $_COOKIE["login"]; $c_haslo = $_COOKIE["haslo"]; if(!$c_login && !$c_haslo) { if(!$login && !$haslo) { } else if($login && $haslo ) { // //łączenie z bazą danych, wybieranie bazy // //pobieranie danych z bazy $query = "select * from pportal_users where user_login='$login' AND user_haslo='$haslo' "; $results = mysql_results($query); if($num_results != 1) { } else if($num_results==1) { } } } ?>
no i problem w tym że gdy wchodze na strone nic sie niewyświetla , a chciałbym by wyświetlał sie formularz
czy może mi ktoś pomóc?