Livar
Now 35% cooler!
- Oct 15, 2010
- 846
- 86
Hey guys, I'm coding a Housekeeping for uber but for some reason it's not redirecting when done, it just removes the news boxes and comes up normal here's my news.php;
Anything wrong?
Code:
if (isset($_POST['content']))
{
$title = filter($_POST['title']);
$teaser = filter($_POST['teaser']);
$topstory = WWW . '/images/ts/' . filter($_POST['topstory']);
$content = filter($_POST['content']);
$seoUrl = filter($_POST['url']);
$category = intval($_POST['category']);
if (strlen($seoUrl) < 1 || strlen($title) < 1 || strlen($teaser) < 1 || strlen($content) < 1)
{
echo "Error, please fix, thnx.";
}
else
{
dbquery("INSERT INTO site_news (title,category_id,seo_link,topstory_image,body,snippet,datestr,timestamp) VALUES ('" . $title . "','" . $category . "','" . $seoUrl . "','" . $topstory . "','" . $content . "','" . $teaser . "','" . date('d-M-Y') . "', '" . time() . "')");
header( 'Location: http://127.0.0.1/newsdone.php' );
exit;
}
}
?>
Anything wrong?