forked from jefvannot/php_rush00
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modif_profil.php
37 lines (34 loc) · 1.25 KB
/
modif_profil.php
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
<?php
session_start();
$css_file = "signup_login.css";
include('partial/head.php');
include('partial/header.php');
?>
<body>
<div class="container">
<div class="log-box">
<?php
if ($_SESSION['mail_already_registered'] == "ON")
{
echo "<div class='error-login'><p>Désolé, un compte existe déjà avec cette nouvelle adresse mail\n</p></div>";
$_SESSION['mail_already_registered'] = NULL;
}
?>
<h1>Mon profil</h1>
<form action="users.php" method="post">
<h4>Prénom</h4>
<input type="text" name="prenom" value="<?php echo $_SESSION['logged_on_user'] ?>">
<h4>Nom</h4>
<input type="text" name="nom" value="<?php echo $_SESSION['nom'] ?>">
<h4>E-mail</h4>
<input type="email" name="mail" value="<?php echo $_SESSION['mail'] ?>">
<button type="submit" class="btn btn-default" value="send">Modifier mon profil</button>
<!-- <input type="submit" name = "submit" value="Envoyer" /> -->
<input type="hidden" name="action" value="profil_update">
<!-- <input type="hidden" name="success" value="login"> -->
</form>
</div>
</div>
<?php include('partial/footer.php'); ?>
</body>
</html>