Hi,
I would be thankfull if anyone could give me the solution for this header problem. There are no blank spaces at end as there is html code in end. I have used <?php session_start();?> in first line and in between am checking this for session.
<?php if($_SESSION['reg'] == "email"){ echo "username already taken. Please try another!"; $_SESSION['reg']="";} else if($_SESSION['reg'] == "user"){ echo "Email exist. If you have registered then please login!"; $_SESSION['reg']="";} ?>
After this there is some html code.
The error am getting is:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\myprojects\registration\index.php:1) in d:\myprojects\registration\index.php on line 1
Please reply,
-sam