Php : erreur avec les sessions
soa cool
-
Utilisateur anonyme -
Utilisateur anonyme -
salut, j'ai de nouveau un petit probleme avec les sessions, je ne comprend pas l'erreur qui est affiché.
la voici :
Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\copie\affichage.php:6) in c:\program files\easyphp\www\copie\affichage.php on line 19
si vous avez besoin du code le voici :
include "connexion.php";
session_start();
echo" <form name='form1' action='affich.php' method='post'>";
$an=date('Y');
$i=2000;
while ($i!=$an+1)
{
echo "<a href='affichage.php?annees=".$i."'> ".$i." </a>";
$i=$i+1;
}
if( session_is_registered("annees") )
{
$url="location: logout.php";
header($url);
}
else
{
session_register("annees");
........
}
Pouvez vous me ce ki ne va pas svp ?
Merci
la voici :
Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\copie\affichage.php:6) in c:\program files\easyphp\www\copie\affichage.php on line 19
si vous avez besoin du code le voici :
include "connexion.php";
session_start();
echo" <form name='form1' action='affich.php' method='post'>";
$an=date('Y');
$i=2000;
while ($i!=$an+1)
{
echo "<a href='affichage.php?annees=".$i."'> ".$i." </a>";
$i=$i+1;
}
if( session_is_registered("annees") )
{
$url="location: logout.php";
header($url);
}
else
{
session_register("annees");
........
}
Pouvez vous me ce ki ne va pas svp ?
Merci
A voir également:
- Php : erreur avec les sessions
- Easy php - Télécharger - Divers Web & Internet
- Expert php pinterest - Télécharger - Langages
- Retour a la ligne php - Forum Webmastering
- Alert php - Forum PHP
- Retour a la ligne php ✓ - Forum PHP
1 réponse
http://www.commentcamarche.org/forum/affich.php3?cat=3&ID=207695&page=1
et
http://www.commentcamarche.org/ccmguide/ccmcharte.php3
Kalamit,
Je ponce donc j'essuie
et
http://www.commentcamarche.org/ccmguide/ccmcharte.php3
Kalamit,
Je ponce donc j'essuie