-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
40 lines (31 loc) · 1012 Bytes
/
index.php
File metadata and controls
40 lines (31 loc) · 1012 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
29
30
31
32
33
34
35
36
37
38
39
40
<!-- ######################################
AUTOR: MATHEUS LIMA
INSTAGRAM: @tidazueira
###################################### -->
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>PHP QUASE DO JEITO CERTO - MATHEUS LIMA</title>
<!-- JQUERY -->
<script type="text/javascript" src="jquery.js"></script>
<!-- url do seu projeto -->
<script type="text/javascript">
var URL_PROJETO = '<?= "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}"; ?>';
</script>
<!-- ARQUIVO JS QUE FAZ A REQUISIÇÃO PARA PEGA OS DADOS DO ARQUIVO PHP/URL DE OUTRO SITE QUE RETORNA UM ARQUIVO JSON -->
<script type="text/javascript" src="app.js"></script>
</head>
<body>
<!-- DIV APENAS PARA EXEMPLO -->
<div id="app">
<ul id="lista"></ul>
</div>
<!-- FORMULÁRIO PARA ENVIO DE DADOS -->
<form method="POST" accept-charset="UTF-8">
<label for="nome">Nos diga o seu nome?</label>
<input type="text" name="nome" id="nome" />
<button type="submit">Enviar</button>
</form>
<h1></h1>
</body>
</html>