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
| <body >
<div id="fond_page">
<div id="conteneur">
<div >
<table><tr>
<td><?php echo "<img src=img/0011.jpg height=200px >" ; ?></td>
<td id=logo >La Maison De Vos Rêves</td>
</tr></table>
</div>
<div id="lien">
<a href="index.php">Acuille</a>
<a href="index.php/?page=agence">Agence</a>
</div>
<div id="milieu">
<div id="cli">
<?php
if(isset($_POST["in_cl"]))
{
$adresse_serveur_MYSQL="localhost" ;
$utilisateur="root" ;
$mot_de_passe="" ;
$nom_bd="agence immobiliere" ;
$in_cl=$_post["in_cl"];
$M_pass_ncl=$_post["M_pass_ncl"];
$tel_cl=$_post["tel_cl"];
$cin_cl=$_post["cin_cl"];
$adresse_cl=$_post["adresse_cl"];
$emal_cl=$_post["emal_cl"];
mysql_connect("$adresse_serveur_MYSQL", "$utilisateur", "$mot_de_passe")or die ("impossible de se connecter au base de donné");
mysql_select_db("$nom_de_la_base")or die ("base de donné inconnue");
$date=date("d/m/Y");
$nclient="INSERT INTO Client VALUES('','".$in_cl."','".$M_pass_ncl."','".$tel_cl."','".$cin_cl."','".$adresse_cl."','".$emal_cl."','".$date."')";
mysql_query($nclient)or die("inscrption no abouté");
echo "inscrption reussie";
}
else
{
echo '
<div id="cli">
</td><td><form method="post" action="client.php">
<table align="center">
<tr><td>Nom d\'utilisateur :</td><td><input type="text" name="$in_cl"></td></tr>
<tr><td>Mot de passe :</td><td><input type="password" name="M_pass_ncl"></td></tr>
<tr><td>Tel (Mobille):</td><td><input type="text" name="tel_cl"></td></tr>
<tr><td>CIN :</td><td><input type="text" name="cin_cl"></td></tr>
<tr><td>Adresse :</td><td><input type="text" name="adresse_cl" size="40"></td></tr>
<tr><td>E-mail :</td><td><input type="text" name="emal_cl"></td></tr>
<tr><td></td><td><input type="submit" value="S\'inscrire"></td></tr>
</table></form>
</table>
</div>';
}
?>
</div>
</div>
<div id="bas">
<marquee direction="left">Pour toute information, contactez-nous Tel: E-mail:</marquee>
</div>
</div>
</div>
</body> |
Partager