Probème sur site

klomera -  
 klomera -
Bonjour,
Pour notre stage nous avons mis en place un site internet, le soucis il y a quelques erreurs, voici le site en question ==> http://www.capebat.com/

Une fois dessus quand on clique sur l'une des case sur la droite il y a plusieurs erreurs

Notice: Undefined index: idProjet in I:\Capebat.new\class\Admin.php on line 18

Notice: Undefined index: etape in I:\Capebat.new\class\Admin.php on line 30

Notice: Undefined variable: idProjet in I:\Capebat.new\class\Admin.php on line 395

Voici le bout de code pour la ligne 18 :

1 <?php
2
3 /**
4 *
5 *
6 */
7 class Admin{
8
9 public $idProjet = 0;
10
11 /**
12 * Constructor
13 */
14 function __construct(&$core){
15 $this->core = &$core;
16
17 if(isset($_GET['idProjet'])) $this->idProjet = $_GET['idProjet'];
18 else $this->idProjet = $_POST['idProjet'];
19
20 $this->core->html->assign('numProjet', $this->idProjet);
21 }

Merci
A voir également:

2 réponses

Alain_42 Messages postés 5413 Statut Membre 894
 
il faut peut etre aussi tester le $_POST ?

if(isset($_GET['idProjet'])) $this->idProjet = $_GET['idProjet'];
18 elseif(isset$_POST['IdProjet'])) $this->idProjet = $_POST['idProjet']; 
0
klomera
 
Merci beaucoup Alain_52 l'erreur ligne 18 est débugé ^^
0