Código PHP:
<?php
....
if($datos_malo)
echo '<script type="text/javascript">
history.go(-1);
</script>';
?>
si vez el código te darás cuenta que se imprime un código javascript. Esa solución me resulta, pero nose como hacerlo con puro php, lo intente con
Código PHP:
header('location:'.$_SERVER["HTTP_REFERER"]);
pero no me funciono. Bueno si lo solucionas con php puro lo posteas. Adiós y suerte.