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
| <html>
<head>
<title>Inscripton</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
.bold{font-weight:bold; color:#205A94;}
.align{text-align:right;}
a{float:right;}
a:link{text-decoration:none}
a:hover{text-decoration:underline overline;color:red;}
.button{
border: solid 1px #0000FF;
font-weight:border;
}
</style>
</head>
<body>
<a href="index.php">Retour</a><BR/>
<hr align="center" width="50%">
<form action="inscription.php" method="POST">
<table align="center">
<tr><td class="bold">Login :</td><td><input type="text" maxlength="15" name="login"/></td></tr>
<tr><td class="bold">Mot de passe :</td><td><input type="password" maxlength="12" name="pwd"/></td></tr>
<tr><td class="bold">Age :</td><td><input type="text" maxlength="3" name="age"/></td></tr>
<tr><td class="bold">Email :</td><td><input type="text" maxlength="30" name="mail"/></td></tr>
</table>
<hr align="center" width="50%">
<center><input type="submit" value="Enregistrer" class="button"/> <input type="reset" value="Effacer" class="button"/>
</center>
</form>
<?php
include( 'Connexion.php');
if ( !empty($_POST['login']) && !empty($_POST['pwd']) && !empty($_POST['mail'])){
if ( isset($_POST['login']) && isset($_POST['pwd']) && isset($_POST['mail'])){
if( $_POST['pseudo']=$Login){
alerte('ce client existe déja');
}else{
connexion();
$req = "insert into users values('','".$_POST['login']."','".$_POST['pwd']."')";
mysql_query($req) or die(mysql_error());
deconnexion();
alerte('Inscription effectuée !');
}
}else {
alerte('Informations Erronés !');
}
}else {
alerte('Veuillez saisir les differentes informations !!');
}
?>
</body>
</html> |
Partager