Capaldi

Untitled

Nov 10th, 2018
204
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Documento sem título</title>
  6. <link href="https://file.myfontastic.com/rYBcvg2i9tEtCvqd9GSZm8/icons.css" rel="stylesheet">
  7. <style>
  8. #imagem{width:400px;height:400px;margin-top:100px;margin-left:20px;border:solid 1px;position:absolute}
  9. #nome-produto{width:300px;height:30px;margin-top:100px;margin-left:440px;border:solid 1px;position:absolute}
  10. #preco{width:50px;height:30px;margin-top:200px;margin-left:450px;border:solid 1px;position:absolute}
  11. #qtd{width:50px;height:30px;margin-top:250px;margin-left:450px;border:solid 1px;position:absolute}
  12. #frete{width:50px;height:30px;margin-top:300px;margin-left:450px;border:solid 1px;position:absolute}
  13. #botao{width:200px;height:40px;margin-top:450px;margin-left:520px;border:solid 1px;position:absolute;background:#0C0;border-radius:3px;border:0px;font-family:Arial, Helvetica, sans-serif;font-size:15px;color:#FFF;line-height:30px;text-align:center}
  14. </style>
  15. </head>
  16.  
  17. <body>
  18. <?php
  19. include "conexao.php";
  20. $qtd = ('qtd');
  21. $cor_id = ('cor_id');
  22. $id_produto = $_GET['id_produto'];
  23. $id_produto = filter_var($id_produto, FILTER_SANITIZE_NUMBER_INT); //resulta em 11
  24. $sql_visualizar = mysql_query("SELECT * FROM produtos WHERE id_produto = '$id_produto' ");
  25. while($linha = mysql_fetch_array($sql_visualizar)){
  26. $id_produto = $linha['id_produto'];
  27. $produto = $linha['produto'];
  28. $preco = $linha['preco'];
  29. $qtd = $linha['qtd'];
  30. $cor_id = $linha['cor_id'];
  31. }
  32. ?>
  33.  
  34. <div id="imagem"></div>
  35. <form method="post" action="carrinho.php?&acao=add">
  36. <input type"hidden" name="id_produto" value="<?php echo $id_produto ?>">
  37. <div id="nome-produto"><input type="text" name="produto" value="<?php echo $produto ?>" /></div>
  38. <div id="preco"><input type="text" name="preco" value="<?php echo $preco ?>" /></div>
  39. <div id="frete"><select name="cor_id">
  40. <option value="1">Branco</option>
  41. <option value="2">vermelho</option>
  42. <option value="3">Amarelo</option>
  43. <option value="4">verde</option>
  44. </select></div>
  45. <div id="qtd">
  46. <select name="qtd">
  47. <option value="1" selected="selected">1</option>
  48. <option value="2">2</option>
  49. <option value="3">3</option>
  50. <option value="4">4</option>
  51. </select>
  52. </div>
  53. <div id="botao"><input type="submit" name="enviar" /></div>
  54. </form>
  55. </body>
  56. </html>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×