header:Location not working

What could be the reason the header:Location... below is not redirecting the browser?:

link:  http://www.owndesigns.com/listen-newsletter/website/contact.html


$message = "Hello";
if (!mail('weikelbob@aol.com','From Listen Website',$message)) die('Mail Failed!');
header("Location: http://www.owndesigns.com");
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I don't see a problem with the header() syntax.  What browser are you testing this with?  Have you tried a different one?
In your actual script, you should also make sure there is no other output before the header is sent, this could even include blank spaces.

From the PHP manual:

"Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or require(), functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file."

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You should get rid of the die() before the header().
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

I tested your form.. it doesn't appear to be a browser issue.  However, it does look like there is a possibly a blank line being output before your header function is called.  Make sure there is no blank space before your PHP tags in handler.php, I suspect there is.
The die couldn't be his problem, as it would be outputting "Mail Failed!" if it were being called.
weikelbobAuthor Commented:
Tomeeboy hit it right on the nose. There was a blank space at the top of my script. That simple!

No problem!  Glad it was that simple ;)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.