Bonjour.

Dans mon formulaire j'ai un calendrier qui réaffiche la page quand on clique sur la date.
Début de ma page
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
<?php
require('connect.php');
//récupération des valeurs du calendrier 
if (isset($_GET['day']))  $jour=$_GET['day']; else $jour = "";  
if (isset($_GET['month']))  $mois=$_GET['month']; else $mois = "";
if (isset($_GET['year']))  $an=$_GET['year']; else $an = "";
if (!empty($jour)){
	if ($jour < 10){
		$jour = "0$jour";
	}
	if ($mois < 10){
		$mois = "0$mois";
	}
$madate = "$jour/$mois/$an";
$madate1 ="$an-$mois-$jour";
}
//récupération des valeurs pour ajouter un film
if(isset($_POST['titref']))      $titre=$_POST['titref'];
	else $titre = "";
if(isset($_POST['sortie']))      $sortie=$_POST['sortie'];
	else $sortie = "";
.....
Début de mon formulaire :
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
<!--*********** FORMULAIRE DE SAISIE ***************-->
<div style="margin-left:200px">
<table border="0"><tr><td>
<form name="ajout" method="post" action="index.php?page=ajout_film">
<table border= "0" style="background-color:#0099FF;" cellpadding=0 cellspacing="0">
<colgroup width='150'></colgroup>
	<tr style="background-color:#0080c0" height=55>
		<td colspan=2 align="center"><b>Ajouter un film</b><br><br>
			<span style="font-size:11px"><font color="white">Vérifier que les acteurs, réalisateurs, genres et nationalités sont dans les listes avant la saisie du film</span></td>
	</tr>
	<tr class="trajout">
		<td align="right">Titre : </td>
		<td><input type="text" name="titref" value="<?php if (isset($titre)) { echo $titre; }?>" style="width:467px" /></td>
	</tr>
	<tr class="trajout">
		<td align="right" valign="top">Date de sortie : <br><br> Année de réalisation :</td>
 
		<td>
		<table border = "0" cellpadding=0 cellspacing="0">
			<tr>		
				<td valign="top" width="160px"><input type="text" name="sortie1" value="<?php if (isset($madate)) { echo $madate; }?>"/><br><br>
					<input type="text" name="annee" value=""/></td><td>
<!-- calendrier -->	
 
<div id="calendrier" align="center">
    <table border=1 style="background-color:#FFFFFF" cellpadding=0 cellspacing=0 width="152px" style="font-size:10px">
        <tr>
            <td><a href="index.php?page=ajout_film&month=<?php echo $monthnb - 1; ?>&year=<?php echo $year; ?>" style="text-decoration:none"><</a></span></td>
            <td colspan="5"><?php echo($month.' '.$year);  ?></th>
            <td><a href="index.php?page=ajout_film&month=<?php echo $monthnb + 1; ?>&year=<?php echo $year; ?>" style="text-decoration:none">></a></span></td>
        </tr>
        <?php
            echo('<tr>');
            for($i = 1; $i <= 7; $i++){
                echo('<td>'.$daytab[$i].'</td>');
            }
            echo('</tr>');
            for($i = 1; $i <= count($calendar); $i++) {
                echo('<tr>');
                for($j = 1; $j <= 7 && $j-$z+1+(($i*7)-7) <= $nbdays; $j++){
                    if($j-$z+1+(($i*7)-7) == date("j") && $monthnb == date("n") && $year == date("Y")) echo '<td align="right"><a href="index.php?page=ajout_film&day='.$calendar[$i][$j].'&month='.$monthnb.'&year='.$year.'" style="text-decoration:none">'.$calendar[$i][$j].'</a></td>';
                    else echo '<td align="right"><a href="index.php?page=ajout_film&day='.$calendar[$i][$j].'&month='.$monthnb.'&year='.$year.'" style="text-decoration:none">'.$calendar[$i][$j].'</td>';
                }
                echo('</tr>');
            }
        ?>
    </table>
</div>
Quand j'entre un titre et que je clique sur une date du calendrier, j'ai bien la date affichée dans l'input text "sortie" mais je perds le titre.

Est que quelqu'un a une idée?

Merci.