bonjour a tous

je bloque sur un souci de header, voici le message que j'obtient :

Warning: Cannot modify header information - headers already sent by (output started at c:\documents and settings\sebastien gueant\bureau\salfparc\salfparc\site\index.php:56) in c:\documents and settings\sebastien gueant\bureau\salfparc\salfparc\site\code\model\verif_ajout_model.php on line 4


j'ai essayer plusieurs chose mais le problème persiste.

Voici les codes des 2 fichiers

index.php :
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
69
 
<?session_start();?>
<?php
header("Cache-Control: no-cache");
header("Pragma: no-cache");
if (isset($_POST['i']))
{
$choix = $_POST['i'];
}
else
{
$choix = $_GET['i'];
}
switch ($choix)
{
// PAGE QUI CONCERNE AGENCE ET SERVICE 				
			case "gestion_model";
				$a = "code/model/gestion_model.php";
				break;
			case "ajout_model";
				$a = "code/model/ajout_model.php";
				break;
			case "verif_ajout_model";
				$a = "code/model/verif_ajout_model.php";
				break;
			case "gestion_matos";
				$a = "code/materiel/gestion_matos.php";
				break;
			case "ajout_matos";
				$a = "code/materiel/ajout_modification/ajout_matos.php";
				break;
			case "select_modif_model";
				$a = "code/model/modif_model/select_modif_model.php";
				break;
			case "modif_model";
				$a = "code/model/modif_model/modif_model.php";
				break;
			case "verif_ajout_matos";
				$a = "code/materiel/ajout_modification/verif_ajout_matos.php";
				break;
			case "visualisation";
				$a = "code/materiel/ajout_modification/visualisation/visu.php";
				break;	
			case "modification_matos";
				$a = "code/materiel/ajout_modification/modification_matos.php";
				break;
			default:
				$a= "informations/bienvenue.php";
				break;
	   }
 
?>
 
<!-- Ajout de la feuille de style -->
<link href="design/style.css" rel="stylesheet" type="text/css">
<!-- Ajout du fichier fonction.js qui contient toute les fonctions  javascript -->
<script src="code/lib/fonction.js"></script>
<?php
//session_start();
//Gestion du cache des navigateurs
//header("Cache-Control: no-cache");
//header("Pragma: no-cache");
//inclusion du fichier connexion.php qui contient toute les parametres de connexion à la base
include_once (dirname(__file__))."/code/parametre/connexion.php";
//initialisation des parametres des fenetre
$ttotal = 960 ;
$tfenetre = ($ttotal - 157) -20;
//affichage des menu et de la page principal avec valeur par defaut $page = "bienvenue.htm"
?>

verif_ajout_model.php

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
 
 
<?php
if (!isset($_POST['Submit'])) {
$code = $_POST['code'];
header("Location: index.php?i=ajout_model&code=$code");
exit;}
 
//verification si un model existe deja avec le meme nom
$res = mysql_query('SELECT nom FROM model WHERE nom="'.$_POST['nom'].'"');
if (mysql_num_rows($res) != 0) {
$code = $_POST['code'] ;
header("Location: index.php?i=ajout_model&code=$code&ajout_no=erreur");
exit;
}
 
 
//RECUPERATION DE L'IDTYPE
$req_idtype = 'SELECT idtype FROM type_matos WHERE code="'.$_POST['code'].'"';
$res_idtype = mysql_query($req_idtype);
$info = mysql_fetch_array($res_idtype);
$_POST['ce_model_type'] = $info['idtype'];
//INCLUSION DU FICHIER D'AJOUT DE REQUETE
$lien = "code/model/req_model_inc/".$_POST['code']."_ajout_inc.php";
include_once($lien);
header("Location: index.php?i=ajout_model&ajout_ok=ajouter"); 
exit;
?>

voila j'aurai besoin de vos lumieres

Merci d'avance a tous