*******I am getting this error******
Warning: Cannot send session cookie - headers already sent by (output started at c:\inetpub\wwwroot\session_test.php:3) in c:\inetpub\wwwroot\session_test.php on line 4
Warning: Cannot send session cache limiter - headers already sent (output started at c:\inetpub\wwwroot\session_test.php:3) in c:\inetpub\wwwroot\session_test.php on line 4
*********this is my code********
<?
session_start();
session_register(\"user\");
//check to see if $your_name contains a value
if (!empty($user))
{
echo (\"$user\");
}
//this is the form that grabs your variable information
elseif (empty($user) && !isset($submit))
{
echo (\"<form name=\\"user validation\\" method=\\"post\\" action=$PHP_SELF>
<input type=\\"text\\" name=\\"user_name\\"><br>
<input type=\\"text\\" name=\\"password\\"><br>
<input type=\\"submit\\" name=\\"submit\ value=\\"submit\\">
</form>\");
}
elseif (isset($submit) && empty($user))
{
$name_of_variable=($user_name);
echo ($user);
}
?>
******whats wrong?**********