I have a web page that has the following code;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<title>Search results</title>
<?php
include_once('filename.php');
$info = ptb_connect('filename.csv','F');
$locations = ptb_listUnique($info, 'Property_Location');
$property_type = ptb_listUnique($info, 'Property_Type');
$property_buy_rent = ptb_listUnique($info, 'Buy_Rent');
if(empty($_GET['location']) && empty($_GET['type']) && empty($_GET['buyrent']) && empty($_GET["min_val"]) && empty($_GET["room_no_min"])){
header("Location:propertysearch.php"); exit;
}
But when I go to the page rather than redirecting to propertysearch.php I get the message "Warning: Cannot modify header information - headers already sent by (output started at N:\www\test\results.php:7) in N:\www\test\results.php on line 15" which is the line that begins Header("Location..
I have tried many things to try and resolve this, including eliminating white spaces, using ob_start(); etc but can not figure it out.
All help is greatly appreciated.