IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

probleme script login


Sujet :

Langage PHP

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 3
    Points : 1
    Points
    1
    Par défaut probleme script login
    Bonjour

    Voici mon probleme : je n'arrive pas a faire fonctionner ma page login de l'espace administration dont le script est le suivant

    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
    <?php 
    if($HTTP_POST_VARS['valider']=="ok") 
       { 
       session_start(); 
       if(($email=="elodie.bertrand2@freesbee.fr")AND($pass=="alinoe")) 
          { 
          $statut="admin";  
          session_register("email");  
          session_register("statut");  
          header("Location:acceuil.php");  
          } 
          else  
          { 
          $erreurlog=1;  
          } 
       } 
     ?>  
    <html>
    <head>
    <title>Document sans titre</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
     
    <body>
    <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
    <td width="100%" bgcolor="#000000"> <div align="center"><strong><font color="#FFFFFF" size="5" face="Georgia, Times New Roman, Times, serif">ESPACE 
    ADMINISTRATION</font></strong></div></td>
    </tr>
    <tr bgcolor="#000000"> 
    <td height="49"> <div align="center"> 
    <p><strong><font color="#FFFFFF" size="4" face="Georgia, Times New Roman, Times, serif">IDENTIFICATION</font></strong></p>
    </div></td>
    </tr>
    <tr bgcolor="#000000">
    <td height="49" bgcolor="#FFFFFF"><form name="form1" method="post" action="">
    <p>&nbsp;</p>
    <table width="75%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
    <td colspan="2"><font face="Georgia, Times New Roman, Times, serif"><strong>Saisissez 
    les param&egrave;tres de votre compte :</strong></font></td>
    </tr>
    <tr> 
    <td width="50%"><div align="right"><font face="Georgia, Times New Roman, Times, serif">e-mail</font></div></td>
    <td width="50%"><font face="Georgia, Times New Roman, Times, serif">
    <input name="email" type="text" id="email">
    </font></td>
    </tr>
    <tr> 
    <td><div align="right"><font face="Georgia, Times New Roman, Times, serif">mot 
    de passe</font></div></td>
    <td><font face="Georgia, Times New Roman, Times, serif">
    <input name="pass" type="text" id="pass">
    </font></td>
    </tr>
    <tr> 
    <td><div align="right"><font face="Georgia, Times New Roman, Times, serif">
    <input name="valider" type="hidden" id="valider" value="ok">
    </font></div></td>
    <td><font face="Georgia, Times New Roman, Times, serif">
    <input type="submit" name="Submit" value="Envoyer">
    </font></td>
    </tr>
    </table>
    </form></td>
    </tr>
    </table>
    <table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td><p align="center"><font color="#FF0000" face="Georgia, Times New Roman, Times, serif"><strong> 
    <?php if($erreurlog==1) {?>  
    <br>
    </strong></font><font color="#FF0000" face="Georgia, Times New Roman, Times, serif"><strong>Votre 
    login et votre mot de passe sont erron&eacute;s <br>
    ou ils ne vous autorisent pas l'acc&egrave;s &agrave; l'espace administrateur 
    ! </strong></font></p>
    <p align="center"><?php } 
          ?>  
    <br>
    </p>
    </td>
    </tr>
    </table>
    <p>&nbsp;</p>
    </body>
    </html>
    Celui-ci fonctionne tres bien lors de test sur le serveur local. Mais des qu'il est sur le serveur distant rien n'y fait impossible de le faire fonctionner. Il me renvoi la page suivante que d'ailleur je ne saisie pas.

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, php4-m@invalid and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Merci de bien vouloir m'aider car j'ai tout essayé mais cela ne fonctionne pas. En dernier recour j'utiliserais un script faisant appel a une connexion a la base de donnée.

    Merci d'avance pour vos réponse
    Elodie

  2. #2
    Rédacteur

    Avatar de loka
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Novembre 2004
    Messages
    2 672
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2004
    Messages : 2 672
    Points : 5 509
    Points
    5 509
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    if($HTTP_POST_VARS['valider']=="ok")
    essayes plutot :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    if($_POST['valider']=="ok")

  3. #3
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 3
    Points : 1
    Points
    1
    Par défaut
    Merci

    j'ai deja essayé mais cela ne change rien au probleme

    Elodie

  4. #4
    Rédacteur

    Homme Profil pro
    Développeur Web
    Inscrit en
    Juillet 2003
    Messages
    695
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Juillet 2003
    Messages : 695
    Points : 1 071
    Points
    1 071
    Par défaut
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, php4-m@invalid and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    quel est ton hebergeur?
    Articles sur developpez.com
    - Gestion des exceptions avec PHP5
    - Chiffrement et hash en PHP contre l'attaque Man in the middle
    - Aedituus - Espace membre sécurisé en PHP5

  5. #5
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 3
    Points : 1
    Points
    1
    Par défaut
    mon hebergeur est www.online.net

    Tu pense que cela peut venir de mon hebergeur?

    Elo

Discussions similaires

  1. script login probleme cookies
    Par stefanelle dans le forum Langage
    Réponses: 14
    Dernier message: 22/10/2009, 18h38
  2. [MySQL] script login probleme avec un if
    Par stefanelle dans le forum PHP & Base de données
    Réponses: 6
    Dernier message: 10/08/2009, 15h32
  3. [Connexion au forum] Problème de login
    Par Maxoo dans le forum Mode d'emploi & aide aux nouveaux
    Réponses: 25
    Dernier message: 23/05/2006, 14h06
  4. Problème scripting
    Par mlequim dans le forum Linux
    Réponses: 15
    Dernier message: 08/08/2005, 17h04
  5. Problème script Bash
    Par Sphost dans le forum Linux
    Réponses: 10
    Dernier message: 26/07/2005, 09h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo