Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement