Bonjour à tous et toutes ,
Voilà j'ai un soucis avec un input type='hidden'.
Pour faire court , j'ai un formulaire avec textarea ( généralement les messages sont long , donc la valeur récupéré s'étend sur plusieurs lignes) dont je récupère la valeur pour mes tests de la gestion des erreurs.
Voilà quand je teste le champ textarea s'il est pas vide je conserve la valeur que je veux renvoyer dans le textarea du formulaire par l'intermédiaire d'un input type='hidden' le soucis ici , c'est qu'il semble limité par un nombre de caractère ce qui fait que dans mon textarea il m'affiche pas tout le message!
Illustrons cela par le code
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
 
<?php
//connection à la base de données
connecter();
 
//extraction des valeurs POST 
extract($_POST);
 
//initialisation des variables
 
if(!isset($nomEtudiant)){$nomEtudiant='';}
if(!isset($prenomEtudiant)){$prenomEtudiant='';}
if(!isset($adresseEtudiant)) {$adresseEtudiant='';}
if(!isset($cpEtudiant)) {$cpEtudiant='';}
if(!isset($villeEtudiant)){$villeEtudiant='';}
if(!isset($telEtudiant)){$telEtudiant='';}
if(!isset($mailEtudiant)){$mailEtudiant='';}
if(!isset($niveauEtudiant)){$niveauEtudiant=0;}
if(!isset($formationEtudiant)){$formationEtudiant=0;}
if(!isset($titreAnnonce)){$titreAnnonce = '';}
if(!isset($annonce)){$annonce = '';}
if(!isset($poste)){$poste = '';}
if(!isset($webCv)){$webCv = 'http://';}
if(!isset($_FILES['cv']['name'])){$_FILES['cv']['name'] = '';}
$cv=$_FILES['cv']['name'];
 
 
//Initialisation des erreurs
 
if(!isset($erreur)){$erreur=false;}
if(!isset($erreur_nomEtudiant)){$erreur_nomEtudiant=false;}
if(!isset($erreur_prenomEtudiant)){$erreur_prenomEtudiant=false;}
if(!isset($erreur_adresseEtudiant)) {$erreur_adresseEtudiant=false;}
if(!isset($erreur_cpEtudiant)) {$erreur_cpEtudiant=false;}
if(!isset($erreur_villeEtudiant)){$erreur_villeEtudiant=false;}
if(!isset($erreur_mailEtudiant)){$erreur_mailEtudiant=false;}
if(!isset($erreur_niveauEtudiant)){$erreur_niveauEtudiant=false;}
if(!isset($erreur_formationEtudiant)){$erreur_formationEtudiant=false;}
if(!isset($erreur_titre)){$erreur_titre = false;}
if(!isset($erreur_annonce)){$erreur_annonce = false;}
if(!isset($erreur_poste)){$erreur_poste = false;}
if(!isset($erreur_webCv)){$erreur_webCv = false;}
if(!isset($erreur_cv)){$erreur_cv = false;}
if(!isset($form_saisie_cv)){$form_saisie_cv = '';}
 
if ($form_saisie_cv){
 
//Test des données obligatoires
if($nomEtudiant==''){$erreur=true;$erreur_nomEtudiant=true;}
if($prenomEtudiant==''){$erreur=true;$erreur_prenomEtudiant=true;}
if($adresseEtudiant=='') {$erreur=true;$erreur_adresseEtudiant=true;}
if($cpEtudiant=='') {$erreur=true;$erreur_cpEtudiant=true;}
if($villeEtudiant==''){$erreur=true;$erreur_villeEtudiant=true;}
// Contrôle de la bonne saisie de l'adresse mail:
if($mailEtudiant==''){$erreur=true;$erreur_mailEtudiant=true;}
else if (ValideMail ($mailEtudiant)) {
                $erreur_mailEtudiant = false;
        }
        else {
                $erreur = true;
                $erreur_mailEtudiant = true;
        }
if($niveauEtudiant==0){$erreur=true;$erreur_niveauEtudiant=true;}
if($formationEtudiant==0){$erreur=true;$erreur_formationEtudiant=true;}
if ($titreAnnonce=='') {$erreur=true;$erreur_titre=true;}
if ($annonce=='') {$erreur=true;$erreur_annonce=true;}
if ($poste=='') {$erreur=true;$erreur_poste=true;}
//Test sur l'adresse web du cv 
if (($webCv=='' || $webCv=='http://') || (!ereg("([A-Za-z0-9]|-|_|\.)*.([A-Za-z0-9]|-|_|\.)*\.([A-Za-z0-9]|-|_|\.)*",$webCv))){
$webCv='http://';
}
if ($webCv=='http://'&& $cv=='') {;$erreur=true;$erreur_webCv=true;$erreur_cv=true;}
 
            
if(!$erreur){
//on insère les données dans la base de données
    //table Etudiant
     $insert_etudiant="insert into etudiant values ('','".$nomEtudiant."','".$prenomEtudiant."','".$adresseEtudiant."','".$cpEtudiant."','".$villeEtudiant."','".$telEtudiant."','".$mailEtudiant."','".$niveauEtudiant."','".$formationEtudiant."')";
     mysql_query($insert_etudiant) or die(mysql_error()."<br />La requête suivante ne peut pas être éxécutée : $insert_etudiant");
     
    //on récupère l'id de l'étudiant pour l'insérer dans la table annonce 
     $selectEtudiant="select num_etudiant from etudiant where nom_etudiant='".$nomEtudiant."' and prenom_etudiant='".$prenomEtudiant."' and mail_etudiant='".$mailEtudiant."'";
     $resultEtudiant= mysql_query($selectEtudiant) or die(mysql_error()."<br />La requête suivante ne peut pas etre executée: $selectEtudiant");
     $rowEtudiant = mysql_fetch_row($resultEtudiant);
     $numEtudiant=$rowEtudiant[0];
    
    //table Annonce_cv
     $insert_annonce='insert into annonce_cv values("","'.$titreAnnonce.'","'.$annonce.'","'.$poste.'","'.$webCv.'","'.$cv.'",0,'.$numEtudiant.')';
     mysql_query($insert_annonce) or die(mysql_error()."<br />La requête suivante ne peut pas etre executée: $insert_annonce");
 
          //Recuperation de la date:
           $date = strftime("%d %B %Y");
        
          // Formattage de l'adresse:
           $adresseEtudiant_formate = ereg_replace("\r","<br/>",$adresseEtudiant);
           $adresseEtudiant_formate = StripSlashes($adresseEtudiant_formate);
                
    // Formattage de l'annonce:
           $annonce_formate = ereg_replace("\r","<br/>",$annonce);
           $annonce_formate = StripSlashes($annonce_formate);
 
        
            $villeEtudiant_formate = StripSlashes($villeEtudiant);
        
          //Transformation du numero de niveau en texte
           if($niveauEtudiant == 1){
                  $lib_nivEtud = "Bac + 5";
           }else if($niveauEtudiant == 2){
                  $lib_nivEtud = "Bac + 3/4";
           }else{
                  $lib_nivEtud = "Bac + 2";
         }
        
 
        //Préparation du mail au format HTML:
        $Destinataire = "truc@machin.ext";
        $Sujet = "Dépot d'une annonce de cv sur le site internet";
 
        $From  = "From:".$mailEtudiant."\n";
        $From .= "MIME-version: 1.0\n";
        $From .= "Content-type: text/html; charset= iso-8859-1\n";
        
        $Message = "<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.formasup-npc.org/css/formasup_internet.css\"/></head><body topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\">";
        $Message .= "<table border=\"0\"><tr><td><img src=\"http://www.formasup-npc.org/img/bandeau_mail.gif\"></td></tr></table>";
        $Message .= "<table border=\"0\" width=\"800\" background=\"http://www.formasup-npc.org/img/mecseul_effet.gif\"><tr><td>&nbsp;</td></tr><tr><td><b><span class=\"c10grasbleu\">Une nouvelle annonce de CV vient d'être saisie par le biais du site web de Formasup</b><br/><br/>";
        $Message .="<span class=\"c10grasbleu\"><u>Offre effectuée par </u> :<br></span><table align=\"center\" width=\"70%\"><tr><td class=\"c10grasorange\">".$nomEtudiant."  ".$prenomEtudiant."</td></tr>";
        $Message .="<tr><td class=\"c10grasorange\">".$adresseEtudiant_formate."</td></tr>";
        $Message .="<tr><td class=\"c10grasorange\">".$cpEtudiant." ".$villeEtudiant_formate."</td></tr>";
        $Message .="<tr><td class=\"c10grasorange\">Teléphone : ";
  if($telEtudiant==''){$telEtudiant="Champ non renseigné";}
  $Message.= $telEtudiant."</td></tr>";
        $Message .="<tr><td class=\"c10grasorange\">Adresse mail :<a href='mailto:".$mailEtudiant."'>".$mailEtudiant."</a></td></tr>";
  $Message .="<tr><td class=\"c10grasorange\">".$formationEtudiant."(".$lib_nivEtud.")</td></tr>"       ;
  $Message .="</table><br/>";
        $Message .="<span class=\"c10grasbleu\"><u>Intitulé de l'annonce</u> :<br/></span><span class=\"c10grasorange\">".$titreAnnonce."</span><br/><br/>";
        $Message .="<span class=\"c10grasbleu\"><u>Annonce</u> :<br/></span><span class=\"c10grasorange\">".$annonce_formate."</span><br/><br/>";
        $Message .="<span class=\"c10grasbleu\"><u>Poste(s) Recherché(s)</u> :<br/></span><span class=\"c10grasorange\">".$poste."</span><br/><br/>";
        $Message .="<span class=\"c10grasbleu\"><u>Web CV</u> :&nbsp;</span><span class=\"c10grasorange\"><a href=".$webCv.">".$webCv."</a></span><br/><br/>";
        $Message .="<span class=\"c10grasbleu\"><u>Fichier CV déposé</u> :&nbsp;</span><span class=\"c10grasorange\">".$cv."</span><br/><br/>";
        $Message .="</td></tr></table></body></html>";
        
        mail($Destinataire,$Sujet,$Message,$From);
        
        /************************************************************************************************************************/
        //Préparation du mail au format HTML pour la réponse à l'entreprise
        $Destinataire_rep = $mailEtudiant;
        //$Destinataire_rep = "truc@machin.ext";
 
        $Sujet_rep = "Votre offre a bien été enregistrée";
        
        $From_rep  = "From:truc@machin.ext\n";
        $From_rep .= "MIME-version: 1.0\n";
        $From_rep .= "Content-type: text/html; charset= iso-8859-1\n";
        
        $Message_rep ="<html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.formasup-npc.org/css/formasup_internet.css\"/></head>";
        $Message_rep .="<table border=\"0\"><tr><td><img src=\"http://www.formasup-npc.org/img/bandeau_mail.gif\"></td></tr></table>";
        $Message_rep .="<body topmargin='0' leftmargin='0' rightmargin='0'><table border=0 width=\"704\" background=\"http://www.formasup-npc.org/img/mecseul_effet.gif\" class=\"c10grasbleu\">";
        $Message_rep .="<tr><td colspan=2 align=left>Bonjour,</td></tr>";
        $Message_rep .="<tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr><tr><td colspan=2>";
        $Message_rep .="Nous avons bien enregistré votre annonce de CV sur notre site Internet.";
        $Message_rep .="</td></tr><tr><td>&nbsp;</td></tr><tr><td colspan=2>";
        $Message_rep .="Nous la diffuserons très prochainement dans la mesure qu'elle soit conforme à votre formation.";
        $Message_rep .="</td></tr><tr><td>&nbsp;</td></tr><tr><td colspan=2>";
        $Message_rep .="En vous remerciant de contribuer au développement de l'apprentissage dans l'enseignement supérieur et restant à votre disposition."; 
        $Message_rep .="</td></tr><tr><td>&nbsp;</td></tr>";
        $Message_rep .="<tr><td colspan=2 align=left>Salutations distinguées.</td></tr>";
        $Message_rep .="<tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr>";
        $Message_rep .="<tr><td>La Direction de FORMASUP</td></tr>";
        $Message_rep .="<tr><td>&nbsp;</td></tr>";
        $Message_rep .="<tr><td>FORMASUP Nord/Pas-de-Calais</td></tr>";
        $Message_rep .="<tr><td>7bis avenue de la Créativité</td></tr>";
        $Message_rep .="<tr><td>Parc des Moulins</td></tr>";
        $Message_rep .="<tr><td>59650 VILLENEUVE D'ASCQ</td></tr>";
        $Message_rep .="<tr><td>Tél. 03.28.33.75.20</td></tr>";
        $Message_rep .="<tr><td>Fax 03.28.33.75.21</td></tr>";
        $Message_rep .="<tr><td><a href='mailto:truc@machin.ext'>e-mail : ftruc@machin.ext</a></td></tr>";
        $Message_rep .="<tr><td><a href='http://www.formasup-npc.org'>http://www.formasup-npc.org</a></td></tr>";
        $Message_rep .="</table></body></html>";
 
  mail($Destinataire_rep,$Sujet_rep,$Message_rep,$From_rep);
}
        else {
                  
                  //envoi des erreurs
                echo"<input type='hidden' name='form_saisie' value=''>";
                echo"<input type='hidden' name='erreur' value=$erreur>";
            echo"<input type='hidden' name='erreur_nomEtudiant' value=$erreur_nomEtudiant>";
                echo"<input type='hidden' name='erreur_prenomEtudiant' value=$erreur_prenomEtudiant>";
            echo"<input type='hidden' name='erreur_adresseEtudiant' value=$erreur_adresseEtudiant>";
                echo"<input type='hidden' name='erreur_cpEtudiant' value=$erreur_cpEtudiant>";
            echo"<input type='hidden' name='erreur_villeEtudiant' value=$erreur_villeEtudiant>";
                echo"<input type='hidden' name='erreur_mailEtudiant' value=$erreur_mailEtudiant>";
                echo"<input type='hidden' name='erreur_niveauEtudiant' value=$erreur_niveauEtudiant>"; 
                echo"<input type='hidden' name='erreur_formationEtudiant' value=$erreur_formationEtudiant>";                                    
            echo"<input type='hidden' name='erreur_titre' value=$erreur_titre>";
            echo"<input type='hidden' name='erreur_annonce' value=$erreur_annonce>";
            echo"<input type='hidden' name='erreur_poste' value=$erreur_poste>";
            echo"<input type='hidden' name='erreur_webCv' value=$erreur_webCv>";
            echo"<input type='hidden' name='erreur_cv' value=$erreur_cv>";
 
            //envoi des variables
            echo"<input type='hidden' name='nomEtudiant' value=$nomEtudiant>";
                echo"<input type='hidden' name='prenomEtudiant' value=$prenomEtudiant>";
            echo"<input type='hidden' name='adresseEtudiant' value=$adresseEtudiant>";
                echo"<input type='hidden' name='cpEtudiant' value=$cpEtudiant>";
            echo"<input type='hidden' name='villeEtudiant' value=$villeEtudiant>";
            echo"<input type='hidden' name='telEtudiant' value=$telEtudiant>";            
                echo"<input type='hidden' name='mailEtudiant' value=$mailEtudiant>";
                echo"<input type='hidden' name='niveauEtudiant' value=$niveauEtudiant>"; 
                echo"<input type='hidden' name='formationEtudiant' value=$formationEtudiant>";                                    
            echo"<input type='hidden' name='titreAnnonce' value=$titreAnnonce>";
 
            echo"<input type='hidden' name='annonce' value='$annonce'>";
            echo"<input type='hidden' name='poste' value=$poste>";
            echo"<input type='hidden' name='webCv' value=$webCv>";
            echo"<input type='hidden' name='cv' value=$cv>";
            echo "<center><b/>Veuillez vérifier que vous avez saisi correctement tous les champs</b></center>
                  <p align=right><a href=javascript:nav('ap',7)><img src='./img/m_admin/retour.gif' border='0'/></p>";
  
  }
}
else {
 
echo "
<tr>
        <td valign='top'>
                <table border='0' width='100%'>
                                            <tr>
                                        <td colspan='4'>&nbsp;</td>
                                </tr>";
 
                                  if($erreur){echo "
                                <tr>
                                        <td class='erreur' align='center' colspan='4'>Les champs en <u>ROUGE</u> indiquent une erreur ou un champ vide.</td>
                                </tr>
                                <tr>
                                        <td colspan='4'>&nbsp;</td>
                                </tr>";}
echo"
                                <input type='hidden' name='form_saisie_cv' value='true'>
                                <tr><td class='c10grasorange' style='padding-bottom:30px;'><p><u>Fiche Etudiant</u></p></td></tr>
          <tr>
                                <td";       
          if (!$erreur_nomEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Nom *</td>
                                <td colspan='3'>
                                <input type='text' name='nomEtudiant' value='".$nomEtudiant."'  size='54' maxlenght='100'/>
          </td>
                                </tr>
                                <tr>
          <td";       
          if (!$erreur_prenomEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Prénom *</td>
                                <td colspan='3'>
                                <input type='text' name='prenomEtudiant' value='".$prenomEtudiant."'  size='54' maxlenght='100'/>
          </td>
                                </tr>
                                <tr>
                                <td";       
          if (!$erreur_adresseEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Adresse *</td>
                                <td colspan='3'>
                                <input type='text' name='adresseEtudiant' value='".$adresseEtudiant."'  size='54' maxlenght='100'/>
          </td>
                                </tr>
                                <tr>
                                <td";       
          if (!$erreur_cpEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Code postal *</td>
                                <td colspan='3'>
                                <input type='text' name='cpEtudiant' value='".$cpEtudiant."'  size='54' maxlenght='100'/>
          </td>
                                </tr>
                                <tr>
                                <td";       
          if (!$erreur_villeEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Ville *</td>
                                <td colspan='3'>
                                <input type='text' name='villeEtudiant' value='".$villeEtudiant."'  size='54' maxlenght='100'/>
          </td>
                                </tr>
                                <tr>
                                <td class='c10grasbleu'align='left'>N° de téléphone</td>
                                <td colspan='3'>
                                <input type='text' name='telEtudiant' value='".$telEtudiant."'  size='54' maxlenght='100'/>
          </td>
                                </tr>
                                <tr>
                                <td";       
          if (!$erreur_mailEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Mail *</td>
                                <td colspan='3'>
                                <input type='text' name='mailEtudiant' value='".$mailEtudiant."'  size='54' maxlenght='100'/>
          ( exemple : nomEtudiant@fai.fr )</td>
                                </tr>
                                <tr>
                                <td";       
          if (!$erreur_niveauEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Niveau de formation *</td>
                                <td colspan='3'>
                                        <select name='niveauEtudiant'>
                                                <option value='0'";
                if($niveauEtudiant == 0){echo 'selected';}echo ">-- Sélectionnez un niveau --</option>
                                                        <option value='1'";if($niveauEtudiant == 1){echo 'selected';}echo">Bac +5</option>
                                                        <option value='2'";if($niveauEtudiant == 2){echo 'selected';}echo">Bac +3/4</option>
                                                        <option value='3'";if($niveauEtudiant == 3){echo 'selected';}echo">Bac +2</option>
                                                </select>
          </td>
                                </tr>
                                <tr>
                                <td";       
          if (!$erreur_formationEtudiant) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Formation suivie *</td>
                                <td colspan='3'>
                                        <select name='formationEtudiant' size=1>
                                                <option value='0'";
                if($formationEtudiant == 0){echo 'selected';}echo ">-- Sélectionnez une formation --</option>";
                //recherche des filières et des antennes
                $insertFormation='Select id_filiere,cycle_filiere From filiere';
                $resultFormation=mysql_query($insertFormation);
           
                while($rowFormation = mysql_fetch_row($resultFormation)){
                                                                        echo "<option value='".$rowFormation[0]."'";
                  if($formationEtudiant == $rowFormation[0]){
                     echo 'selected';
                     }
                   echo">".$rowFormation[1]."</option>";
}
                                echo"</select>
          </td>
                                </tr>
                                </table>
                                <table border='0' width='100%'>
                                            <tr><td colspan='4'>&nbsp;</td></tr>
 
                                <tr><td class='c10grasorange' style='padding-bottom:30px;'><u>Fiche Annnonce</u></td></tr>
                                <tr>
                                <td";       
          if (!$erreur_titre) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo " align='left'>Titre de  votre annonce *</td>
                                <td colspan='3'>
                                <input type='text' name='titreAnnonce' value='".$titreAnnonce."'  size='54' maxlenght='100'/>
          </td>
                                </tr>
                                <tr><td";
           if (!$erreur_annonce) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo" align='left'>Votre annonce *</td>
                                <td colspan='3'>
          <TEXTAREA name='annonce' rows=10 COLS=40>".$annonce."</TEXTAREA>
          </td></tr>
                                <tr><td"; 
          if (!$erreur_poste) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo" align='left'>Poste(s) Recherché(s) *</td>
                                <td colspan='3'>
                                        <input type='text' name='poste' value='".$poste."' size='54' maxlenght='100'/>
          </td></tr>
                                <tr><td";
          if (!$erreur_webCv) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo" align='left'>Votre Web CV</td>
                                <td colspan='3'> 
                                        <input type='text' name='webCv' value='".$webCv."'  size='54' maxlenght='100'/>
          </td></tr>    
                                <tr><td";
          if (!$erreur_cv) {echo " class='c10grasbleu'";}else{echo " class='erreur'"; }
          echo" align='left'>Votre CV (fichier)</td>
                                <td colspan='3'> 
                                        <input type='file' name='cv' size='40' maxlenght='70'/>
          </td></tr>    
          <tr><td colspan='4' align='center' style='padding-top:20px;'>
          <a href=javascript:nav('ap',7)><img src='./img/valider.gif'' border='0'/></a></td></tr>
          <tr>
                                        <td colspan='4' class='c08Bleupetit'><br>Conformément à l'article 27 de la Loi Informatique et Liberté du 6 janvier 1978, nous vous informons que vous disposez d'un droit d'accès, de modification et de suppression des données vous concernant en écrivant au CFA Formasup.</td>
                                </tr>
    </table>
         </td>
</tr>";         
}
deconnecter();
?>
Je préfère vous mettre tout le code ça serait plus simple de trouver une solution par rapport à ma logique de développement.
J'espère que vous pourrez m'aider , en vous remerciant d'avance.