<?php session_start(); ?>
<!DOCTYPE html>
<html>
	<head>
		<?php include 'includes/meta.php'; ?>
	</head>
	<body>
		<?php include 'includes/header.php'; ?>
			
			<?php
			include_once  'includes/inter.php';

			if(isConnected()){
                
                ?>
				<form method="post" action="change_password.php" id="changePasswordForm">
					Changer le mot de passe :<br/>
					<label for="real_mdp_ask">Votre ancien mot de passe :</label>
					<input type="password" id="real_mdp_ask" name="rmdp"  />
					<br/>
					<label for="new_mdp2_ask">Votre nouveau mot de passe :</label>
					<input type="password" id="new_mdp_ask" name="nmdp"  />
					<br/>
					<label for="new_mdp2_ask">R&eacute;p&eacute;tez-le :</label>
					<input type="password" id="new_mdp2_ask" name="nmdp2"  />
					<br/>
					<input type="submit" value="Changer le mot de passe">
				</form>
				<?php
                
            }else{
				header('Location:register.php');
			}
			
			
			?>
		<?php include 'includes/footer.php'; ?>
	</body>
</html>