แก้ warning ให้หน่อยครับ

Warning: Cannot modify header information - headers already sent by (output started at /home/www/virtual/webthaiindex.com/htdocs/search/index.php:12) in /home/www/virtual/webthaiindex.com/htdocs/search/result_search.php on line 26
-------------------------------------------------------------------------------------------------------------------------

if($keyword==""){
 header("Location: index.php");
 exit();
}

----------------------------------------------
มันขึ้นWarning ครับ ใช้รายแก้ดี
12 มี.ค. 2552 2 1,900

if ($keyword=="") {
echo "<meta http-equiv='refresh' content='0;url=index.php'>";
}

มันจะ refresh ไปหน้าหลัก (index.php) เหมือนกันครับ

ถ้าจะให้หน่วงเวลาค้างหน้านั้นซักหน่อยก็แก้เป็น content=2 หรือตัวเลขตามต้องการ ยิ่งมากยิ่งค้างหน้านั้นนานก่อนจะ refresh
#1

<?
//เอาไว้บนสุดเลยครับ แล้วก็...ลองเอาไว้ที่ไฟล์หลักหากมีการเรียกผ่าน
ob_start();
?>

 

#2
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 1024
^