S'abonner :  Newsletters    Magazines
Avis sur les produits Avis sur les logiciels Avis sur les jeux Actualités A propos de 01net
815 utilisateurs connectés

Notice: Undefined index

Dooffy le 09 février 2009 à 18h43
Bonjour, j'ai un fichier index.php dans un dossier vote, mais lorsque je vais sur celui, il m'affiche 2 petites erreurs qui n'arrêtent pas le fonctionnement de la page, mais que j'aimerais qui disparaissent =) voici les 2 erreurs qu'il m'affiche :
Notice: Undefined index: vcp in C:\wamp\www\Vote\index.php on line 27
Notice: Undefined index: act in C:\wamp\www\Vote\index.php on line 27

Et voici ma page index.php
<?php

//Configuration

//Logon Database information.
define("LOGON_HOST","localhost");
define("LOGON_USER","*****");
define("LOGON_PASS","*****");
define("LOGON_DB","*****");
define("ENCRYPT_PASSWORDS",false); // !!! - Not yet supported

//Local webserver's MySQL information.
define("MYSQL_HOST","localhost");
define("MYSQL_USER","*****");
define("MYSQL_PASS","*****");
define("MYSQL_DB","*****");

//In game mail settings
define("MAIL_SUBJECT","Thanks For Voting!");
define("MAIL_BODY","Thank you for voting for our server. Here is your reward!");

// Misc
define("RPPV",1); // Reward points per vote. Must be a whole number.

session_start();
// force login to view.
if(!$_SESSION['vcp']['authenticated'] && $_GET['act'] != "vote")
{
include("pages/login.php");
new Login();
die;
}
switch($_GET['act'])
{
default:
include("pages/overview.php");
new Overview();
break;
case "rewards":
include("pages/rewards.php");
new Rewards();
break;
case "spend":
include("pages/spend.php");
new Spend();
break;
case "vote":
include("pages/vote.php");
new Vote();
break;
}
?>

Merci de votre patience pour m'aider à trouver l'erreur de cette page :pleure: :) .

Cordialement, Dooffy.
-->Message édité par Dooffy le 09/02/2009 18:44:46<--
-------
DJ Junior !
Dooffy le 13 février 2009 à 18h29
Aidez-moi s'il vous plait :pleure:
-------
DJ Junior !


PRODUITS

TÉLÉCHARGER - LOGICIELS

JEUX VIDÉOS

LOISIRS

01NET PRO

AVIS ET COMMENTAIRES

A PROPOS DE 01NET

publicité
> Logiciel : F-Secure
Internet Security 2010
Profitez de notre offre promotionnelle de - 20 %!

Service 01net
Newsletters 01net
abonnez vous gratuitement !
  
01Informatique
01 INFORMATIQUE
L'hebdo de référence des décideurs informatiques.
Micro Hebdo
MICRO HEBDO
L'hebdo qui vous simplifie la micro
et Internet.
L'Ordinateur Individuel
L'ORDINATEUR INDIVIDUEL
Le mensuel informatique qui vous informe et vous conseille.
Nous contacter  |  Charte de confiance  |  Voir notice légale

01net.  -  01men  -  RMC  -  BFM Radio  -  BFM TV  -  TousLesPodcasts  -  01informatique.fr  -  Association RMC-BFM
Tous droits réservés © 1999 - 2009 Internext - 01net.