I can not return my page because it does not traffic data in URL .
I have this following Form:
<form name="formulario_arquivo" id="formulario" method="POST" action="upload_foto/proc_upload.php" enctype="multipart/form-data">
<table class="formulario">
<tbody>
<tr class="cabecalho">
<td>
<label for="arquivo">Arquivo </label>
</td>
<td>
<input name="arquivo" id="nome_arquivo" type="file" class="elemento_a_esquerda">
</td>
</tr>
</tbody>
<tr class="rodape">
<td></td>
<td>
<button type="submit" value="Cadastrar" class="elemento_a_direita">
<img src="mgm/importar.png" alt="Importar">
</button>
</td>
</tr>
</table>
</form>
That is sending data to save the imported file to another page, but I need to return from the proc_upload.php
page to my current page.
if (move_uploaded_file($_FILES['arquivo']['tmp_name'], $_UP['pasta']. $nome_final)){
//Upload efetuado com sucesso, exibe a mensagem
$query = mysqli_query($conn, "INSERT INTO arquivos (
codigo,arquivo,data_) VALUES(NULL,'$nome_final',NOW())");
echo "
<META HTTP-EQUIV=REFRESH CONTENT = '0;URL=http://localhost/site_opus/public_html/sistema/_sistema.php'>
<script type=\"text/javascript\">
alert(\"Imagem cadastrada com Sucesso.\");
</script>
";
}
This is the page that returns the data, but my URL is fixed.