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:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=windows-1250">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Exoplanets</title>
<meta name="title" content="Exoplanets" />
<meta name="description" content="Exoplanets" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body class="bg">
<div class="top">
<div style="width:1150px; background-color:#000">
<div class="top_frame">
<a href="."><img src="images/logo.png" style="margin-top:26px"></a>
<div class="top_menu">
<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>
<div class="link" style="margin-right:15px">ABOUT</div><div class="link">CONTACT</div>
</div>
</div>
</div>
</div>
<div style="width:1150px;">
<div style="float:left; margin-top:322px;"><img src="images/arrow.png"></div>
<div class="main">
<a href="https://boardgamegeek.com/boardgame/163976/exoplanets" target="_blank" class="odnosnik">
<div class="top_bgg">
<div style="float:right"><img src="images/bgg.png"></div>
<div style="float:right; margin-right:5px; margin-top:7px">
<div style="color:#fff">BoardGameGeek PRE-PREMIERE GAME</div>
<div style="font-size:9px">VISIT EXOPLANETS PROFILE</div>
</div>
</div></a>
<div class="top_info">
<div style="float:left">LOGIN TO YOUR PLANET</div>
</div>
<div class="main_frame_top"></div>
<div class="main_frame" style="text-align:center">
<div class="login">
<div style="font-size:16px; font-weight:bold; margin-bottom:10px; width:340px; text-align:center">CREATE A NEW PLANET</div>
<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>
<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>
<?php
mysql_query("SET collation_connection = utf8_polish_ci");
function ShowForm($komunikat=""){
echo '<form action="register.php" method="post"> <input type="input" name="login" class="input" placeholder="Login (BGG user name)">
<input type="password" name="password" class="input" placeholder="Password">
<input type="input" name="email" class="input" placeholder="E-mail">
<input type="hidden" value="1" name="send">
<input type="submit" value="Register" class="button">
</form>
<div style="padding-left:10px; padding-top:6px; float:left; color:#ffffff">'.$komunikat.'</div>';
}
if($_POST["send"]==1){
if(!empty($_POST["login"]) && !empty($_POST["password"]) && !empty($_POST["email"])){ else {
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')"); echo ShowForm
("Planet created"); }
} else ShowForm("Fill-in all fields");
}
else ShowForm();
?>
</div>
</div>
<div class="main_frame_bot"></div>
</div>
</div>
</body>
</html>
Ten post edytował shemko 18.02.2015, 11:54:33