this is my first question here,i'm hoping not to do it wrong.
Im using a simple form in my website, here is the mailer php code:
<?php
    $name = $_POST['name'];
    $email = $_POST['email'];
    $message = $_POST['message'];
    $from = 'xxxxx'; 
    $to = 'xxxx@xxxx.com'; 
    $subject = 'xxxxx';
    $human = $_POST['human'];
    $body = "De: $name\n E-Mail: $email\n Mensaje:\n $message";
    if ($_POST['submit']) {
        if ($name != '' && $email != '') {
            if ($human == '4') {                 
                if (mail ($to, $subject, $body, $from)) { 
                echo '<p>Su mensaje ha sido enviado correctamente!</p>';
            } else { 
                echo '<p>Ocurrió un error, porfavor vuelva e intentlo de nuevo!</p>'; 
            } 
        } else if ($_POST['submit'] && $human != '4') {
            echo '<p>Su respuesta anti-spam es incorrecta!</p>';
        }
        } else {
            echo '<p>Por favor, rellene todos los campos obligatorios!!</p>';
        }
    }
?>
1) I would like to redirect to index after the Thank you message!! i cant find the way to do it though.
2) And if its possible, point me in the right direction to improve the Anti-spam system.
Thanks in advance!! ;)

Su mensaje ha sido enviado correctamente!
';`? Check out my edit and please give feedback. – AStopher Jan 13 '15 at 17:31