blob: 9c018c31834238c8c0a37abc8a21c8ba9edc83f3 [file] [log] [blame]
Andreu66ad5cf2019-09-18 17:15:44 +02001<html>
2 <head>
3 <meta charset="UTF-8">
4 <title>PĂ gina de benvinguda</title>
5 <link rel="stylesheet" href="./css/basic.css" />
6 <link rel="stylesheet" href="./css/login.css" />
Andreu0b2f8432019-09-18 20:09:59 +02007
8 <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
Andreu66ad5cf2019-09-18 17:15:44 +02009 </head>
10 <body>
11 <div id="outter-container">
12 <div id="inner-container">
13 <h1>Selecciona el teu nom</h1>
14 <h3>Per entrar al joc de la Pastanaga Assessina</h3>
15 <form action="main.php" method="GET">
Andreu0b2f8432019-09-18 20:09:59 +020016 <select name="user" id="list">
Andreu66ad5cf2019-09-18 17:15:44 +020017 </select>
18
19 <input type="submit" value="Entrar" />
20 </form>
21 </div>
22 </div>
Andreu0b2f8432019-09-18 20:09:59 +020023
24 <script>
25 $.post("./php/getusers.php", function(data, status){
26 $("#list").html(data);
Andreued8e1f92019-09-18 22:26:04 +020027 console.log(data);
Andreu0b2f8432019-09-18 20:09:59 +020028 });
29 </script>
Andreu66ad5cf2019-09-18 17:15:44 +020030 </body>
31</html>