Código PHP:
<?php
ini_set('error_reporting', E_ALL);
$self=$_SERVER['PHP_SELF'];
$con = mysql_connect("177.67.211.56","foro4bd","R4jU7ebP.wj");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("opiniones", $con);
if(isset($_POST["ime"])) {$ime=addslashes(trim($_POST["ime"]));}
if(isset($_POST["mail"])) {$mail=addslashes(trim($_POST["mail"]));}
if(isset($_POST["mensaje"])) {$mensaje=addslashes(trim($_POST["mensaje"]));}
if(isset($_POST["spam"])) {$spam=addslashes(trim($_POST["spam"]));}
mysql_query("INSERT INTO formulario (ime, mail, mensaje)
VALUES ('$ime', '$mail', '$mensaje')");
$result = mysql_query("SELECT * FROM formulario");
if($result)
{header("Location:http://ley-dominical.websphp.com/");}
?>
Alguna sugerencuia?
Se que el error viene del header() pero es como me habeis aconsejado antes que haga.