-
Notifications
You must be signed in to change notification settings - Fork 0
/
inscrire.html
58 lines (42 loc) · 1.37 KB
/
inscrire.html
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
<DOCTYPE!>
<html>
<head>
<title> inscription</title>
<link rel="stylesheet" href="essai.css">
<script>
function verif()
{var a=document.getElementById("login");
var b=document.getElementById("pass");
if (!a.value && !b.value)
{ alert ('Login et mot de passe sont absents');
}
else
{ if (!a.value)
{
alert('Login absent');
}
if (!b.value)
{alert('Mot de passe absent');}
else{
document.getElementById('form_inscrire').action="/connexion.php/inscrire";
}}
}
</script>
</head>
<body>
<form id="form_inscrire" method="post" action="" onsubmit="verif()">
<br>
<br>
<h2> Inscription</h2>
<table>
<tr><td>Login:*</td> <td> <input id="login" type="texte" name="login" > </td> </tr>
<br/>
<tr><td> Mot de passe:*</td><td><input id="pass" type="password" name="motdepasse"> </td></tr>
</table>
<br/>
<br/>
<input id="con" type="submit" value="S'inscrire"></td> </tr>
</table>
</form>
</body>
</html>