Witam, mam problem ze swoją stroną. Przed dodaniem do strony kodu PHP wszystko działało normalnie. Teraz, kiedy ją odświeżam górne menu przeskakuje niżej (adres strony: http://exoplanets.boardanddice.com/register.php).

W czym tkwi problem? Z góry dziękuje za pomoc.



Oto kod strony:

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=windows-1250">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  9. <title>Exoplanets</title>
  10. <meta name="title" content="Exoplanets" />
  11. <meta name="description" content="Exoplanets" />
  12. <link href="css/style.css" rel="stylesheet" type="text/css" />
  13. </head>
  14. <body class="bg">
  15.  
  16.  
  17.  
  18. <div class="top">
  19. <div style="width:1150px; background-color:#000">
  20. <div class="top_frame">
  21. <a href="."><img src="images/logo.png" style="margin-top:26px"></a>
  22. <div class="top_menu">
  23.  
  24. <div class="link" style="margin-right:25px; border-bottom: 1px solid #fff; color: #fff; position: relative;">HOME</div><div class="link" style="margin-right:15px">EVENTS</div><div class="link" style="margin-right:15px">RANKING</div>
  25. <div class="link" style="margin-right:15px">ABOUT</div><div class="link">CONTACT</div>
  26.  
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31.  
  32.  
  33. <div style="width:1150px;">
  34.  
  35. <div style="float:left; margin-top:322px;"><img src="images/arrow.png"></div>
  36.  
  37.  
  38.  
  39. <div class="main">
  40.  
  41. <a href="https://boardgamegeek.com/boardgame/163976/exoplanets" target="_blank" class="odnosnik">
  42. <div class="top_bgg">
  43. <div style="float:right"><img src="images/bgg.png"></div>
  44. <div style="float:right; margin-right:5px; margin-top:7px">
  45. <div style="color:#fff">BoardGameGeek PRE-PREMIERE GAME</div>
  46. <div style="font-size:9px">VISIT EXOPLANETS PROFILE</div>
  47. </div>
  48. </div></a>
  49.  
  50. <div class="top_info">
  51. <div style="float:left">LOGIN TO YOUR PLANET</div>
  52.  
  53. </div>
  54.  
  55.  
  56.  
  57.  
  58. <div class="main_frame_top"></div>
  59. <div class="main_frame" style="text-align:center">
  60.  
  61. <div class="login">
  62.  
  63. <div style="font-size:16px; font-weight:bold; margin-bottom:10px; width:340px; text-align:center">CREATE A NEW PLANET</div>
  64. <div style="font-size:12px; margin-top:8px; margin-bottom:30px">Remember to use exactly the same nickname as your BGG account. If any trouble contact with us <a href="contact.php" class="odnosnik"><strong>here.</strong></a></div>
  65.  
  66. <div style="font-size:12px; margin-top:0px; margin-bottom:30px">In nature creating a planet takes bilions of years but in Exoplanets universe it takes just a moment. Please check your account in few hours.</div>
  67.  
  68. <?php
  69. $conn = mysql_connect("xxx","xxx","xxx");
  70.  
  71. mysql_query("SET NAMES utf8");
  72. mysql_query("SET CHARACTER SET utf8");
  73. mysql_query("SET collation_connection = utf8_polish_ci");
  74. mysql_query($sqla);
  75.  
  76. function ShowForm($komunikat=""){
  77. echo '<form action="register.php" method="post">
  78. <input type="input" name="login" class="input" placeholder="Login (BGG user name)">
  79. <input type="password" name="password" class="input" placeholder="Password">
  80. <input type="input" name="email" class="input" placeholder="E-mail">
  81. <input type="hidden" value="1" name="send">
  82. <input type="submit" value="Register" class="button">
  83. </form>
  84. <div style="padding-left:10px; padding-top:6px; float:left; color:#ffffff">'.$komunikat.'</div>';
  85. }
  86.  
  87. if($_POST["send"]==1){
  88. if(!empty($_POST["login"]) && !empty($_POST["password"]) && !empty($_POST["email"])){
  89. if(mysql_num_rows(mysql_query("select * from users where user_login='".htmlspecialchars($_POST["login"]."'")))) { echo ShowForm("użytkownik istnieje").'<META HTTP-EQUIV="Refresh" Content="2">'; }
  90. else {
  91. mysql_query("INSERT INTO `users`(`user_id`, `user_login`, `user_password`, `user_email`, `planet`, `token1`, `token2`, `token3`, `token4`, `token5`, `token6`, `life_cost`, `rank`, `points`) VALUES (NULL,'".htmlspecialchars($_POST["login"])."','".htmlspecialchars($_POST["password"])."','".htmlspecialchars($_POST["email"])."','planet_blank.png','token.png','token.png','token.png','token.png','token.png','token.png','var1.png','Unknown','Unknown')");
  92. echo ShowForm("Planet created");
  93. }
  94. } else ShowForm("Fill-in all fields");
  95.  
  96. }
  97. else ShowForm();
  98. ?>
  99.  
  100.  
  101. </div>
  102. </div>
  103.  
  104. <div class="main_frame_bot"></div>
  105. </div>
  106.  
  107. </div>
  108.  
  109.  
  110.  
  111. </body>
  112. </html>