-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnota.php
More file actions
35 lines (30 loc) · 1.33 KB
/
nota.php
File metadata and controls
35 lines (30 loc) · 1.33 KB
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
<?php
include("connection.php");
session_start();
@$login=$_SESSION["login"];
@$senha=$_SESSION["senha"];
@$nome = $_POST["nome"];
@$num_card = $_POST["num_card"];
@$cvv = $_POST["cvv"];
@$data_venc = $_POST["data_venc"];
@$produto=$_SESSION["gay"];
@$acao = $_POST["acao"];
if ($acao="Confirmar") {
mysqli_query($con, "insert into userscli (login,senha,nome,num_card,cvv,data_venc) values ('$login','$senha','$nome','$num_card','$cvv','$data_venc')where login='$login'");
}
echo'
<center>
<p class="palavra" style="font: 50px "Century Gothic"; color: #505050">Detalhes do pedido</p>
<p class="palavra" style="font: 50px "Century Gothic"; color: #505050">Nome do cliente:',$nome,'</p>
<p class="palavra" style="font: 50px "Century Gothic"; color: #505050">Numero do cartão:',$num_card,'</p>
<p class="palavra" style="font: 50px "Century Gothic"; color: #505050">CVV:',$cvv,'</p>
<p class="palavra" style="font: 50px "Century Gothic"; color: #505050">data de vencimento:',$data_venc,'</p>
<hr style="width: 40%">'
;
$consulta = mysqli_query($con, "select * from produtos where id= '$produto'");
$dados = mysqli_fetch_array($consulta);
echo'
<p class="palavra" style="font: 50px "Century Gothic"; color: #505050">Produto:',$dados["nome"],'</p>
<p class="palavra" style="font: 50px "Century Gothic"; color: #505050">Código:',$produto,'</p>
</center>';
?>