Files
resatennis_tyroltenn/www/site_inscription/terrain_suite3.php

33 lines
1.0 KiB
PHP
Executable File

<?PHP
$mot_passe=$_POST['mot_passe'];
$club=$_POST['club'];
$nom_club=$_POST['nom_club'];
//echo $nom_club;echo $club;
echo "<input type=hidden name=club value='$club'><input type=hidden name=nom_club value='$nom_club'>";
if ($mot_passe==""){
$retour=1;
$erreur="<center><font color=00ff00><h3><b>Entrez un mot de passe !!!</b></h3></font></center>";
include("terrain_suite2.php");
}
else{
include("conf.php");
include("mysql_compat.php");
include ("conf.php");
$db_connection=mysql_connect($db_host,$db_user,$password);
mysql_select_db($db_name,$db_connection);
$requete="SELECT numero_fft FROM club WHERE id_club='$club' ;";
//echo $requete."<br>";
$reponse=mysql_query($requete,$db_connection) or die ("Erreur no".mysql_errno()." : ".mysql_error()."<br>");
$reptab=mysql_fetch_array($reponse);
if ($['']!=$mot_passe){
$retour=1;
$erreur="<center><font color=00ff00><h3><b>Ca n'est pas le bon mot de passe.</b></h3></font></center>";
include("terrain_suite2.php");
}
else {
include('gestion_terrains.php');
}
}
?>