Bonjour à tous,
Lors de l'envoi de mon formulaire j'ai le fameux message (uniquement en ligne et pas en local).
Code : Sélectionner tout - Visualiser dans une fenêtre à part Warning: Cannot modify header information - headers already sent by (output started at /home/sbcn2010/www/index2.php:48) in /home/sbcn2010/www/inscription.php on line 103
Je n'arrive pas à identifier le problème (pas d'echo d'espace....)
merci pour votre aide :
Voici le code du fichier index2.php (la ligne 48 est
Code : Sélectionner tout - Visualiser dans une fenêtre à part <div id="header">
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 <?php /* set the cache limiter to 'private' */ session_cache_limiter('private'); $cache_limiter = session_cache_limiter(); /* set the cache expire to 30 minutes */ session_cache_expire(30); $cache_expire = session_cache_expire(); session_start() ; $_SESSION['pseudoframe'] = session_id( ); $etatprovenance="luimeme"; if(isset($_GET["etat"])){ $etatprovenance =$_GET['etat']; } if ($etatprovenance=="formulaire_abstract") { $adresse="formAbstract.php"; } elseif ($etatprovenance=="inscription") { $adresse="inscription.php"; } elseif ($etatprovenance=="inscription2") { $adresse="inscription2.php"; } elseif ($etatprovenance=="inscription3") { $adresse="inscription3.php"; } elseif ($etatprovenance=="inscription4") { $adresse="inscription4.php"; } else { $adresse="mainContent.php"; } ?> <!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"> <link rel="stylesheet" href="css/general.css" type="text/css" /> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>SBCN 2010</title> </head> <body class="twoColFixLtHdr"> <div id="container"> <div id="header"> <?php include_once("haut.php"); ?> </div> <div id="sidebar"> <div id="sidebar1"> <?php include_once("sidebar1.php"); ?> </div> <div id="sidebar2"> <?php include_once("sidebar2.php");?> </div> </div> <div id="mainContent"> <?php include_once($adresse);?> </div> </div> </body> </html>







Répondre avec citation
Partager