-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditprofil.php
More file actions
66 lines (57 loc) · 1.94 KB
/
editprofil.php
File metadata and controls
66 lines (57 loc) · 1.94 KB
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
62
63
64
65
66
<?php
include("bdd/editprofil_bdd.php");
?><!DOCTYPE html>
<html>
<head>
<?php
include("raccourcis/link_header.php");
?>
<title>Modifer votre Profil</title>
</head>
<body>
<?php
include("raccourcis/header.php");
?>
<div class="affichage">
<div class="content">
<div class="formulaire">
<form method="POST" action="" class="login active">
<br/>
<h1>Mon profil</h1>
<div>
<label for="mailconnect">NOM</label>
<input type="text" id="nom" name="nom" value="<?php echo $_SESSION['nom']; ?>" />
</div>
<div>
<label for="mailconnect">PRENOM</label>
<input type="text" id="prenom" name="prenom" value="<?php echo $_SESSION['prenom']; ?>" />
</div>
<div>
<label for="nom">Mail : <?php echo $_SESSION['email']; ?> </label>
</div>
<div>
<label for="promotion">Saisir votre promotion :</label>
<input type="radio" value="L1" id="promotion" name="promotion" <?php if($_SESSION['promotion'] == 'L1'){ ?> checked <?php } ?> /> L1
<input type="radio" value="L2" id="promotion" name="promotion" <?php if($_SESSION['promotion'] == 'L2'){ ?> checked <?php } ?> /> L2
<input type="radio" value="L3" id="promotion" name="promotion" <?php if($_SESSION['promotion'] == 'L3'){ ?> checked <?php } ?> /> L3
<input type="radio" value="M1" id="promotion" name="promotion" <?php if($_SESSION['promotion'] == 'M1'){ ?> checked <?php } ?> /> M1
<input type="radio" value="M2" id="promotion" name="promotion" <?php if($_SESSION['promotion'] == 'M2'){ ?> checked <?php } ?> /> M2
</div>
<div class="bottom">
<input type="submit" name="formedit" value="Sauvegarder" />
<a href="" class="linkform"></a>
</div>
</form>
<?php
if(isset($erreur)) {
echo '<font color="red">'.$erreur."</font>";
}
?>
</div>
</div>
<?php
include("raccourcis/footer.php");
?>
</div>
</body>
</html>