Problème avec un test de mot de passe
jpgtlg
Messages postés
51
Statut
Membre
-
Profil bloqué -
Profil bloqué -
Bonjour,
je suis la personne en charge d'un site internet (amateur débutant) et je souhaiterais afficher une page aprés avoir valider un mot de passe.
j'ai consulté les forums qui parlent de ce sujet et j'ai essayé diverses solutions, aucune ne fonctionne.
j'ai fait un essai avec les html et php suivants.
<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<head><title>login comité directeur</title>
<!-- <SCRIPT LANGUAGE="JavaScript"> {
function Login()
var done=0;
var sect=document.login.sect.value;
var mdp=document.login.mdp.value;
if (sect=="Athlétisme" && mdp=="a01" ) {
window.location="c:\site_usm\www\rdv.html";
</SCRIPT>
-->
</head>
<body style="background-image: url(texture28.gif);">
<div style="text-align: center;">
</div>
<div style="text-align: center;">
<form name=logcd method="get" action="cont-acc-essai.php">
<table border="0">
<tbody>
<big style="font-weight: bold; text-decoration: underline;">
<span style="color: rgb(35, 0, 220);"><br></span></big></div>
<table style="width: 917px; margin-left: 0px;">
<tr style="font-weight: bold; color: rgb(35, 0, 220);">
<td style="text-align: center; width: 151px; text-decoration: underline;">
<font face="Arial" size="2">Section :</font></td>
<td style="width: 173px;">
<select name="sect">
<option> Athlétisme</option>
<option> Badminton</option>
<option> Basket Ball</option>
<option> Boxe</option>
<option> Escrime</option>
<option> Handball</option>
<option> Hockey sur Gazon</option>
<option> Judo</option>
<option> Natation</option>
<option> Tennis</option>
<option> Tennis de Table</option>
<option> Tir à l'Arc</option>
<option> Twirling Bâton</option>
<option> Volley Ball</option>
<option> Membres du Bureau</option>
</select>
</td><td style="width: 561px;"><big style="font-weight: bold;">
<span style="color: rgb(35, 0, 220);">choisir votre section et renseigner le mot de passe de la section</span>
</big>
</td>
</tr>
<tr>
<td style="font-weight: bold; color: rgb(35, 0, 220); text-decoration: underline; text-align: center; width: 151px;">
<font face="Arial" size="2">Mot de passe :</font>
</td>
<td style="width: 173px;"><input name="mdp" type="password">
</td>
<td style="width: 561px;">
</td>
</tr>
<tr align="center">
<td style="width: 173px;" colspan="2">
<input name="connexion" value="Se connecter" type="submit" onclick="Login()">
</a>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
-->
<!--
<html>
<head>
<title>Ma page de traitement</title>
</head>
<body>
<? php
// on teste la déclaration de nos variables
{
// on affiche nos résultats
echo 'Votre nom est '.$_GET['sect'].' et votre fonction est '.$_GET['mdp'];
}
?>
</body>
</html>
-->
quelqu'un peut-il me dire pourquoi il a juste un affichage d'une page vide?
d'avance merci de votre aide.
cordialement
je suis la personne en charge d'un site internet (amateur débutant) et je souhaiterais afficher une page aprés avoir valider un mot de passe.
j'ai consulté les forums qui parlent de ce sujet et j'ai essayé diverses solutions, aucune ne fonctionne.
j'ai fait un essai avec les html et php suivants.
<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<head><title>login comité directeur</title>
<!-- <SCRIPT LANGUAGE="JavaScript"> {
function Login()
var done=0;
var sect=document.login.sect.value;
var mdp=document.login.mdp.value;
if (sect=="Athlétisme" && mdp=="a01" ) {
window.location="c:\site_usm\www\rdv.html";
</SCRIPT>
-->
</head>
<body style="background-image: url(texture28.gif);">
<div style="text-align: center;">
</div>
<div style="text-align: center;">
<form name=logcd method="get" action="cont-acc-essai.php">
<table border="0">
<tbody>
<big style="font-weight: bold; text-decoration: underline;">
<span style="color: rgb(35, 0, 220);"><br></span></big></div>
<table style="width: 917px; margin-left: 0px;">
<tr style="font-weight: bold; color: rgb(35, 0, 220);">
<td style="text-align: center; width: 151px; text-decoration: underline;">
<font face="Arial" size="2">Section :</font></td>
<td style="width: 173px;">
<select name="sect">
<option> Athlétisme</option>
<option> Badminton</option>
<option> Basket Ball</option>
<option> Boxe</option>
<option> Escrime</option>
<option> Handball</option>
<option> Hockey sur Gazon</option>
<option> Judo</option>
<option> Natation</option>
<option> Tennis</option>
<option> Tennis de Table</option>
<option> Tir à l'Arc</option>
<option> Twirling Bâton</option>
<option> Volley Ball</option>
<option> Membres du Bureau</option>
</select>
</td><td style="width: 561px;"><big style="font-weight: bold;">
<span style="color: rgb(35, 0, 220);">choisir votre section et renseigner le mot de passe de la section</span>
</big>
</td>
</tr>
<tr>
<td style="font-weight: bold; color: rgb(35, 0, 220); text-decoration: underline; text-align: center; width: 151px;">
<font face="Arial" size="2">Mot de passe :</font>
</td>
<td style="width: 173px;"><input name="mdp" type="password">
</td>
<td style="width: 561px;">
</td>
</tr>
<tr align="center">
<td style="width: 173px;" colspan="2">
<input name="connexion" value="Se connecter" type="submit" onclick="Login()">
</a>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
-->
<!--
<html>
<head>
<title>Ma page de traitement</title>
</head>
<body>
<? php
// on teste la déclaration de nos variables
{
// on affiche nos résultats
echo 'Votre nom est '.$_GET['sect'].' et votre fonction est '.$_GET['mdp'];
}
?>
</body>
</html>
-->
quelqu'un peut-il me dire pourquoi il a juste un affichage d'une page vide?
d'avance merci de votre aide.
cordialement
A voir également:
- Problème avec un test de mot de passe
- Trousseau mot de passe iphone - Guide
- Mot de passe administrateur - Guide
- Mot de passe bios perdu - Guide
- Identifiant et mot de passe - Guide
- Mot de passe compromis - Guide