Bonjour et merci de votre aide !! je suis pas tres fort en php donc ...soyez patient...

Voici mon 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
 
<form action="Piece1.php" method="post">
	<?php	
 
 
			$serveur="localhost";
			$utilisateur=".....";
			$motDePasse=".......";
			$base=".....";
			mysql_pconnect($serveur,$utilisateur,$motDePasse);
			mysql_select_db($base)or die ("connexion ratee");
 
 
			if   (isset($_POST['champ1'])
			&& isset($_POST['champ2'])
			&& isset($_POST['champ3'])
			&& isset($_POST['champ4'])
			&& isset($_post['i']) 
			&& isset($_post['d']) 
			&& isset($_post['y'])
			&& isset($_post['i1']) 
			&& isset($_post['d1']) 
			&& isset($_post['y1'])
			&& isset($_POST['champ7'])
			&& isset($_post['i2']) 
			&& isset($_post['d2']) 
			&& isset($_post['y2'])
			&& isset($_POST['champ9'])
			&& isset($_POST['champ10'])
			&& isset($_POST['champ11'])
			&& isset($_POST['champ12'])
			&& isset($_POST['champ13'])
			)
 
 
		{
 
		$NumAbo=htmlentities($_POST['champ1']);
		$NumeroAbon=htmlentities($_POST['champ2']);
		$IdentTarif=htmlentities($_POST['champ3']);
		$ANNEE=htmlentities($_POST['champ4']);
		$DATEDEBUT=je ne sais comment faire !!!;
		$DATEFIN=......
		$PAYEELE=......
		$FORMULE=htmlentities($_POST['champ9']);
		$Reglement=htmlentities($_POST['champ10']);
		$Reduction=htmlentities($_POST['champ11']);
		$Periode=htmlentities($_POST['champ12']);
		$Informations=htmlentities($_POST['champ13']);
 
		mysql_query ("INSERT INTO abonnements (NumAbo,NumeroAbon,IdentTarif,ANNEE,DATEDEBUT,DATEFIN, PAYEE, PAYEELE, FORMULE, Reglement, Reduction, Periode, Informations) 
		VALUES ('$NumAbo','$NumeroAbon','$IdentTarif','$ANNEE','$DATEDEBUT','$DATEFIN','$PAYEE','$PAYEELE','$FORMULE','$Reglement','$Reduction','$Periode','$Informations')");
		mysql_close();
		}
 
	?>
Voici une partie du 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
49
50
51
52
53
54
55
 
<tr>
		<th width="150" height="30">Début de Validité:</th>
		<td rowspan="1">
 
		<SELECT name='i' Size='1'>
			<?php
 
			           for($i=1; $i<=31;$i++){     //Lister les jours
				if ($i < 10){         
				                  echo "<OPTION>0$i<br></OPTION>";
					      }
				        else 
                                              {
			                         echo "<OPTION>$i<br></OPTION>";
                                              }
                                              }
				           echo "</SELECT>";
			?>
		</select>
 
 
 
		<SELECT name="d" Size="1">
			<?php
			             for($d=1; $d<=12;$d++){     //Lister les mois
			          if ($d < 10){         
				                     echo "<OPTION>0$d<br></OPTION>";
				                 }
			                   else {
			                             echo "<OPTION>$d<br></OPTION>";
				                 }
                                                 }
			                        echo "</SELECT>";
 
			                     $date = date('Y');         
 
			  ?>
		</select>	
 
 
 
		<SELECT name="y" Size="1">	
			<?php
 
			         for ($y=2000; $y<=$date; $y++) 
                                         {     
			                        echo"<OPTION><br>$y<br></OPTION>"; 
                                         }
			                echo "</SELECT>";
			?>
		</select>
 
		</tr>
		</td>
Voila , la partie pour afficher la date n est pas de moi hein! ..cc est de la recup, bref je voudrais pouvoir entrer dans ma base la date choisie ! dans le genre : $DATEDEBUT=("$i"."$d"."$y"); mais rien a faire je n y arrive pas ! ca ne renseigne pas la base et si je mets ca j ai une erreur Undefine variable DATEDEBUT ...je n avance plus !!! merci de vos conseils !!