چرا این صفحه منتقل نمی شه ؟

DaDaDooDoo

کاربر VIP
سلام
من کد زیر رو نوشتم اما صفحه به پیج مورد نظر منتقل نمی شه ، روی لوکال هاست مشکلی نداره وقتی آپلود می کنم به این مشکل بر می خورم ، save without BOM هم کردم .
PHP:
session_start();
	if(isset($_POST['owner_name']))
	{
		$new_record = array(
		
		"owner_name"=>$_POST['owner_name'],
		"kind"=>$_POST['kind'],
		"negotation_kind"=>$_POST['negotation_kind'],
		"ostan"=>$_POST['ostan'],
		"shahr"=>$_POST['shahr'],
		"region"=>$_POST['region'],
		"owner_phone"=>$_POST['owner_phone'],
		"owner_mobile"=>$_POST['owner_mobile'],
		"owner_email"=>$_POST['owner_email'],
		"owner_add"=>$_POST['owner_add'],
		"document_kind"=>$_POST['document_kind'],
		"residence"=>$_POST['residence'],
		"renting_name"=>$_POST['renting_name'],
		"renting_phone"=>$_POST['renting_phone'],
		"tabaghat"=>$_POST['tabaghat'],
		"unit_count"=>$_POST['unit_count'],
		"unit_age"=>$_POST['unit_age'],
		"rebiuld"=>0,
		"state"=>"انتخاب نشده",
		"view"=>$_POST['view'],
		"area"=>$_POST['area'],
		"bar"=>$_POST['bar'],
		"gozar"=>$_POST['gozar'],
		"tarakom"=>$_POST['tarakom'],
		"eslahi"=>$_POST['eslahi'],
		"price"=>$_POST['price'],
		"price_per_meter"=>$_POST['price_per_meter'],
		"description"=>$_POST['description'],
		"tabaghe"=>$_POST['tabaghe'],
		"zirbana"=>$_POST['zirbana'],
		"rooms"=>$_POST['rooms'],
		"kitchen"=>$_POST['kitchen'],
		"open"=> 0,
		"bathroom"=>$_POST['bathroom'],
		"kafpoosh"=>$_POST['kafpoosh'],
		"phone_count"=>$_POST['phone_count'],
		"parking_count"=>$_POST['parking_count'],
		"vam"=>0,
		"image_add"=>"empty",
		"anbari"=>0,
		"balkon"=>0,
		"shomine"=>0,
		"shoofaj"=>0,
		"cooler"=>0,
		"gaz"=>0,
		"fancuel"=>0,
		"chiler"=>0,
		"package"=>0,
		"asansor"=>0,
		"sona"=>0,
		"jakoozi"=>0,
		"stakhr"=>0,
		"hayat"=>0,
		"hayat_khalvat"=>0,
		"zirzamin"=>0,
		"iphon"=>0,
		"remot"=>0);
		
		if(isset($_POST['rebiuld'])) { $new_record["rebiuld"]=1; }
		if(isset($_POST['rebiuld'])) { $new_record["vam"]=1; }  
		if(isset($_POST['open'])) { $new_record["open"]=1; }
		if(isset($_POST['anbari'])) { $new_record["anbari"]=1; }
		if(isset($_POST['balkon'])) { $new_record["balkon"]=1; }
		if(isset($_POST['shomine'])) { $new_record["shomine"]=1; }
		if(isset($_POST['shoofaj'])) { $new_record["shoofaj"]=1; }
		if(isset($_POST['cooler'])) { $new_record["cooler"]=1; }
		if(isset($_POST['gaz'])) { $new_record["gaz"]=1; }
		if(isset($_POST['fancuel'])) { $new_record["fancuel"]=1; }
		if(isset($_POST['chiler'])) { $new_record["chiler"]=1; }
		if(isset($_POST['package'])) { $new_record["package"]=1; }
		if(isset($_POST['asansor'])) { $new_record["asansor"]=1; }
		if(isset($_POST['sona'])) { $new_record["sona"]=1; }
		if(isset($_POST['jakoozi'])) { $new_record["jakoozi"]=1; }
		if(isset($_POST['stakhr'])) { $new_record["stakhr"]=1; }
		if(isset($_POST['hayat'])) { $new_record["hayat"]=1; }
		if(isset($_POST['hayat_khalvat'])) { $new_record["hayat_khalvat"]=1; }
		if(isset($_POST['zirzamin'])) { $new_record["zirzamin"]=1; }
		if(isset($_POST['iphon'])) { $new_record["iphon"]=1; }
		if(isset($_POST['remot'])) { $new_record["remot"]=1; }

		$options_array = array();
		$opt_result = "";
		if(isset($_POST['pos1'])) { array_push($options_array,$_POST['pos1']); }
		if(isset($_POST['pos2'])) { array_push($options_array,$_POST['pos2']); }
		if(isset($_POST['pos3'])) { array_push($options_array,$_POST['pos3']); }
		if(isset($_POST['pos4'])) { array_push($options_array,$_POST['pos4']); }
		
		$opt_count = count($options_array);
		for($i=0 ; $i < $opt_count ; $i++)
		{
			$opt_result .= $options_array[$i] .  " ";
		}
		$new_record['state']=$opt_result;
		
		$_SESSION['user_data'] = $new_record;
		
		header("location : agreement.php");
		exit;
	}

ممنون می شم راهنمایی کنید
 

DaDaDooDoo

کاربر VIP
آقا حل شد ، فاصله های بین خطوط برنامه رو حذف کردم درست شد .
 

جدیدترین ارسال ها

بالا