Click here to Skip to main content
15,913,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Warning: Cannot modify header information - headers already sent by (output started at /home/iconweb/public_html/submiteon2/Get_Details.php:8) in /home/iconweb/public_html/submiteon2/Get_Details.php on line 17
Posted

If you are going to do a redirect, the PHP code block must come before anything that outputs to the browser - that includes echo, HTML (or even spaces or a BOM) outside of <?php ... ?> blocks and any other functions that cause output:

PHP
<?php
if($something) {
  header('Location: http://other.url');
  exit;
}
?>
<!DOCTYPE html>
<head>
 ... rest of page ...
 
Share this answer
 
Check Whether Is There Any Echo Statement in your code
if it is there then remove or comment it
 
Share this answer
 
v2
Comments
DeepthiTanguturi 19-Apr-12 4:37am    
No,This is my code,Check It Once

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>


<div id="container">
Login Success";
else
echo "
Login Failure
";
}


?>
</div>


</body>
</html>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900