--- Kelly Hallman <[EMAIL PROTECTED]> wrote: > On Tue, 2 Dec 2003, Chris Hubbard wrote: > > All, dealing with header("location:...") again. and trying to > > understand what's happening. I've got the following code: > > header("Location:http://www.mysite.com/cp/ad/ad_details.php?id=". > $id); > > I'm kinda surprised I didn't see this mentioned.. Have you tried: > header("Location: http://url.redirect/\n\n"); exit; // ?
You should definitely not try to add your own newlines to the end of a header like that. PHP might be able to gracefully handle it, but I wouldn't rely on it. As for the original question, put a space after your colon, and let us know how that works. Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php