**************Why an I getting this Warning?****************
Warning: Cannot send session cookie - headers already sent by (output started at c:\inetpub\ in c:\inetpub\ 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);
}
?>
Warning: Cannot send session cookie - headers already sent by (output started at c:\inetpub\ in c:\inetpub\ 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);
}
?>