<?php include("head.php"); ?> <center><table width="200" border="0"> <tr> <td><center><b>Witaj w królestwie AshVall!</b></center></td> </tr> </table></center> <br> <br> <center><table width="600" border="0"> <tr> <td><center>Jakas tam Historyjka</center></td> </tr> </table></center> <br> <br> <center><table width="40" border="0"> <tr> <td><center>Logowanie</center></td> </tr> </table></center> <br> <br> <center><table width="200" border="0"> <tr> <td><form method=post action=player.php> <center><b>Login:</b> <input name="login" type="text"></center> <center><b>Haslo:</b> <input name="pass" type="password"></center> <center><input name="" type="submit" value="Loguj"></center> </form> </td> </tr> </table></center> <?php include("foot.php")?>
oto plik header.php
<?php if (!$login || !$pass) { include("head.php"); include("foot.php"); exit; } include("head.php"); $logres = mysql_num_rows(mysql_query("select * from players where user='$login' and pass='$pass'")); if ($logres <= 0) { include("foot.php"); exit; } else { } ?> <link rel=stylesheet href=style.css> <?php print "Sesia zakończyła się. Zostałeś wylogowany bądź nie możesz się zalogować.. <a href=index.php>Strona Glowna</a>"; exit; } $stat = mysql_fetch_array(mysql_query("select * from players where user='$login' and pass='$pass'")); exit; } $ip = "$HTTP_SERVER_VARS[REMOTE_ADDR]"; ?> <center><img src="images/ashvall.gif" alt="AshVall MMORPG" /></center> <center><table width="200" border="0"> <tr> <th scope="row"> <?php ?> <a href=?logout><img src="images/exit.gif" alt="wyloguj" /></a> </th> </tr> </table></center><br /><br /> <center><table width="400" border="0"> <tr> <th scope="row"> <?php ?></th> </tr> </table></center> <br />
A problem polega na tym, że przy logowaniu wpisuje poprawnie wszystkie dane i po wciśnięciu przycisku loguj wyswietla mi się "Wypełnij wszystkie pola". I jeszcze jedno. Przy testowaniu gry na moim kompie wszystko było ok, a gdy juz przeniosłem gre na server UGU.PL to właśnie mam ten problem. Proszę o pomoc.
Dziękuje.