Witam
Mam o to taka strone
http://serwer1326732.home.pl/new.phpznajduje się tam formularz. I mam taki problem ze gdy dodam <form></form> na stronie to cała mi się sypie. A gdy usunę te znaczniki to strona poprawnie się wyświetla. Co jest nie tak
<?php
/**
* @author
* @copyright 2013
*/
require_once('conf/config.php');
if(!isset($_GET['region'])){
$stmt=$pdo->prepare('SELECT DISTINCT id,name,city,state,age,photo_dir FROM girls WHERE active=1 ORDER BY RAND() LIMIT 2');
} else {
$stmt=$pdo->prepare('SELECT DISTINCT id,name,city,state,age,photo_dir FROM girls WHERE state =:state AND active=1 ORDER BY RAND() LIMIT 2');
$stmt->bindValue(':state',$_GET['region'],PDO::PARAM_STR);
}
$stmt->execute();
foreach($stmt as $row){
$girls[]=$row;
}
$stmt->closeCursor();
$stmt=$pdo->prepare('SELECT DISTINCT id,name,city,state,age,photo_dir FROM girls WHERE active=1 ORDER BY pkt desc LIMIT 10');
$stmt->execute();
foreach($stmt as $row){
$girlsTop[]=$row;
}
$stmt->closeCursor();
?>
<!DOCTYPE HTML>
<meta http-equiv="content-type" content="text/html" /> <meta name="author" content="" /> <link rel="Stylesheet" type="text/css" href="reset.css" /> <link rel="Stylesheet" type="text/css" href="style.css" />
<div id="header-wrapper"> <div class="content-wrap"> <img src="images/logo.png" /> <div class="line-colors"></div>
<div class="main-wrapper">
<form action='add.php' method="post" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="512000000" />
<input type="text" name="name"/> <input type="text" name="age"/> <input type="text" name="city"/> <input type="file" name="girl_photo" /> <input type='submit' value="DODAJ"/>
<div class="post-footer">
<ul style="text-decoration: none;"> <li><a style="text-decoration: none;" href="index.php?region=dolnoslaskie">dolnoslaskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=kpomorskie">kujawsko-pomorskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=lubelskie">lubelskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=lubuskie">lubuskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=lodzkie">lodzkie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=malopolskie">małopolskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=mazowieckie">mazowieckie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=opolskie">opolskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=podkarpackie">podkarpackie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=pomorskie">pomorskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=slaskie">slaskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=swietokrzyskie">swietokrzyskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=wmazurskie">warmińsko-mazurskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=wielkopolskie">wielkopolskie
</a></li> <li><a style="text-decoration: none;" href="index.php?region=zpomorskie">zachodniopomorskie
</a></li>
<div class="line-colors"></div> <div class="content-wrap">