-1

错误显示在标题(位置......)中。错误在 header('location:companies.php?rates=1'); 的同一行中 写着

"DestinationState"  => $_SESSION['order'][$counter]['t_stateID'],
    "DestinationZipcode"=> $_SESSION['order'][$counter]['t_zipcode'],
    "Details"           => array('DetailItem' => array( 'Weight' => $_SESSION['order'][$counter]['weight'],'Class' => '55')),
    "Accessorials"      => array('AccessorialItem' => array('Code' => 'LiftgateService')),
    "CODAmount"         => "100",
);

//print('<pre>');print_r($params);die;
   $return = $client->Create(array('request'=>$params));
  // $return = $client->Create($params);
   //$return  = $client->__call('Create', $params);
   //print('<pre>');print_r($return);die;
   $counter=0;
   $_SESSION['Saia'][$counter]['Amount']  = $return->CreateResult->RateDetails->RateDetailItem->Amount;

}
}
}   


header('location:companies.php?rates=1');
?>
4

2 回答 2

0

尝试删除 header() 之前的所有前导空格。通常页面的html中至少有一个。我没有看到页面的开头,所以我无法为您提供更多帮助。

于 2013-09-06T10:34:09.190 回答
0

将此添加到您的第一行:

<?php ob_start();?>
于 2013-09-06T10:35:54.877 回答