No redirect with header()
| From: | Dotan Cohen | Date: | Sun, 16 Oct 2005 15:04:09 +0000 |
| Subject: | No redirect with header() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-224196@lists.php.net to get a copy of this message | ||
I am working on a redirect script to log "out"'s. I was trying to do
it with a header redirect:
<?php
// Log in database
/*
-snip-
*/
// Send user away
header ("Location: ".$url);
?>
Does this seem like it should work? It doesn't. What is the correct
syntax for these things? You can see the 'prototype' at
http://lyricslist.com: Just click on the logo or the word
"Song
Lyrics" above the ads. Thanks in advance for any help.
Dotan Cohen.