I building a very simple app with Laravel4 and so far i have managed to set up PHPMailer to work with a contact form, the users fill in their details and send me an email, normal stuff, everything works fine.
After the user sent the email successfully, he is redirected to the home page via 

```
if($m->send()) {
    header('Location: /path/to/home/');
    die();
}

```

Now what i need is a success message that appears at the top of the homepage if the user has been redirected after a successfully sent email.

I have a div with `.success` class sitting on top of my home page, absolutely positioned out of view, with a negative Y value.
I tried pulling it down after on `$m->send()` like so:

```
    if($m->send()) {
        header('Location: /path/to/home/');
        echo "<script type='text/javascript'>
                $('.success').animate({
                   top: 0
                }, 2000);
              </script>";
        die();
    }

```

but it didnt work. In fact, nothing i echo after the header() has any effect.

What can I do?

Thank you guys!