veeeelikej problem...

mam dooooost velikej problem...
hajzl jeden mizernej mi to nechce presmerovat....

if(isset($pridat)) {

$jmeno = trim($jmeno);
$email = trim($email);
$web = trim($web);
$text = trim($text);
$web = str_replace("http://", "", $web);
$jmeno = htmlspecialchars($jmeno);
$email = htmlspecialchars($email);
$web = htmlspecialchars($web);
$text = htmlspecialchars($text);
$text = preg_replace( "`(http|ftp)+(s)?:(//)((\w|\.|\-|_)+)(/)?(\S+)?`i", "<a href=\"\\0\">\\0</a>", $text);
$text = nl2br($text);

if($jmeno=="") {
header("location: komentare.php?aclanek=$pridat&chyba=jmeno");
exit;
}
elseif($text=="") {
header("location: komentare.php?aclanek=$pridat&chyba=text");
exit;
}
elseif($jmeno=="Michal Kos" or $jmeno=="haXis" or $jmeno=="Admin" or $jmeno=="Webmaster") {
$jmeno = "Anonym";
}
elseif($jmeno=="haXis_nereknu") {
$jmeno = "haXis";
$email = "webmaster@mihax.com";
$web = "www.mihax.com";
$text = str_replace("[b]","<strong>", $text);
$text = str_replace("[/b]","</strong>", $text);
$text = str_replace("[cite]","<cite>\"", $text);
$text = str_replace("[/cite]","\"</cite>", $text);
}

if($email=="") {
$email = "0";
}

if($web=="") {
$web = "0";
}

if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
$explode_ip = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
$ip = $explode_ip[0];
} else {
$ip = $_SERVER['REMOTE_ADDR'];
}

$date = Date("d.m.Y v H:i");
mysql_query("INSERT INTO blog_komentare VALUES (0, '$pridat', '$jmeno', '$ip', '$date', '$text', '$email', '$web')") or die(mysql_error());
header("komentare.php?aclanek=" . $pridat . "");
exit;
}
u tohodle mi to vzdycky skejsne header("komentare.php?aclanek=" . $pridat . ""); proste se to ne-a-ne presmerovat a pekne mi to leze na nervy
header("location:komentare.php?aclanek=" . $pridat . "");
nebo mozna:
header("location:komentare.php?aclanek=($pridat)");

taky to de pres JAVASCRIPT....
nebo snad i:
header("komentare.php?aclanek=" . $pridat )
LucasX: to druhý je to, co měl haXis původně. a ten první... hmm... mohu přece rovnou:

header("location:komentare.php?aclanek=$pridat");
a co :

header("location:komentare.php?aclanek=\"$pridat\"");

mno, proste se potrebuje pohrat s uvozovkama, atd. ;-)