-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathinserir_dados.php
executable file
·46 lines (41 loc) · 1.42 KB
/
inserir_dados.php
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
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<?php
session_start();
if(isset($_GET['add'])){
$id = $_GET['add'];
$_SESSION['produto']['id_' . $id]['preco'] = $_GET['preco'];
$_SESSION['produto']['id_' . $id]['quantidade'] = $_GET['quantidade'];
$_SESSION['produto']['id_' . $id]['id'] = $id;
}
?>
<html>
<head>
<title></title>
</head>
<body>
<form action="">
<table width="750px">
<tr>
<td align = "center">
Produto inserido com sucesso.
</td>
</tr>
<tr>
<td align="center">
<br /><br /><br />
<table width = "50%">
<tr>
<td>
<input type = "button" name = "inserir" value = "Inserir mais produtos" onClick="history.go(-2)"/>
</td>
<td>
<input type = "button" name = "finalizarOrcamento" value = "Finalizar orçamento" onClick="top.location.href='carrinho.php';window.parent.parent.GB_hide();"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>