-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnexion.php
More file actions
75 lines (44 loc) · 1.91 KB
/
Copy pathconnexion.php
File metadata and controls
75 lines (44 loc) · 1.91 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
67
68
69
70
71
72
73
74
75
<DOCTYPE html>
<meta charset=”utf-8”>
<html>
<head>
<title>se connecter au site </title>
<link rel="stylesheet" href="accueil.css" />
</head>
<body>
<div id="div_central_co">
<center>
<h1>Vous connecter</h1>
<form method="post" action="connexion1.php">
<label for="email">email:</label><input type="text" name="email"/>
<br><br><br><br>
<label for="pseudo">pseudo:</label><input type="text" name="pseudo"/>
<br><br>
<input type ="submit" class="gbutton" value="valider"/>
<br><br><br><br><br>
</form>
<h1>Créer un compte</h1>
<button type="button" class="gbutton" onclick="loadAj()">Ajout</button>
<p id="ajout"></p>
</center>
</div>
<footer>
<p>Copyright Trucs<br />
<a href="#">Me contacter !</a>
</p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
<script>
function loadAj() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("ajout").innerHTML = this.responseText;
}
};
xhttp.open("GET", "ajout_auteur.php", true);
xhttp.send();
}
</script>
</body>
</html>