标头已由..错误发送 [英] headers already sent by .. error
本文介绍了标头已由..错误发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于已发送的标头,我得到了错误
I am getting error for headers already sent
<?php
$telecaller = (isset($_GET['telecaller'])) ? $_GET['telecaller'] : null;
<?php
$telecaller = (isset($_GET['telecaller'])) ? $_GET['telecaller'] : null;
?>
<html>
<head>
<title>Edit Record</title>
<script>
</script>
</head>
<body>
<form action="#" method="post">
<input type="hidden" name="id" value="<?php echo $telecaller; ?>"/>
<div>
<strong> Name of CIExe.</strong> <input type="text" name="telecaller" value="<?php echo $telecaller; ?>"/><br/>
<input type="submit" name="submit" value="Submit">
</div>
</form>
</body>
</html>
<?php
include 'db.php';
if (isset($_POST['submit'])) {
$con=mysql_query("UPDATE import2 SET telecaller='$_POST[telecaller]' WHERE telecaller='$telecaller'")
or die(mysql_error());
if(!$con){
echo 'can not update';
}else {
header('location:ntelecaller.php');
}
}
?>
推荐答案
电话呼叫者 =(isset(
telecaller = (isset(
_GET ['
_GET['telecaller'])) ?
_GET [电话呼叫者" ]:空;
_GET['telecaller'] : null;
<?php
这篇关于标头已由..错误发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文