daily pastebin goal
64%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  2. <?php
  3. include "config.php";
  4. $data = $_POST['data'];
  5. $andamento = $_POST['andamento'];
  6. $documento = $_FILES['documento']['name'];
  7. $id_processo = $_GET['id_processo'];
  8.  
  9.        move_uploaded_file( $_FILES['documento']['tmp_name'], 'uploads/'.$_FILES['documento']['name'] );
  10.     $sql = mysql_query("INSERT INTO movimentacoes (id_processo, data, andamento, documento) value ('$id_processo','$data','$andamento','$documento')");
  11.     header('Location: index2.php?pg=result&id='.$id_processo.'');
  12.  
  13. ?>
RAW Paste Data
Top