-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
28 lines (24 loc) · 787 Bytes
/
index.php
File metadata and controls
28 lines (24 loc) · 787 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Project</title>
<link rel="stylesheet" href="login.css">
</head>
<body>
<?php include ("header.php"); ?>
<div class="login">
<p class="text">Login</p>
<form method="post" action="password.php">
<div class="input"><input type="text" name="username" placeholder="Username" required></div>
<div class="input"><input class="ip" type="text" name="ip" placeholder="ip" hidden></div>
<div class="submit"><input type="submit" name="next" value="Next"></div>
</form>
</div>
<script src="js/jquery.js"></script>
<script>
$.getJSON("http://jsonip.com?callback=?", function (data) {
$(".ip").val(data.ip);
});
</script>
</body>
</html>