PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Note: HTTP/1.1 requires an absolute URI as argument to Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and dirname() to make an absolute URI from a relative one yourself:
Have you examined the url that the header is generating? Does it have all the name=value pairs you expected? Is it losing characters (do any fields need to be urlencoded?)? Have you confirmed that the variables are set properly in the _GET array? (You'll need to view the edit page, then update your source to print our the get array, save the source, then submit in order to avoid the can't send headers error message)
For instance, I can tell that if either page or view get corrupted(or aren't being set) you'll only output a header/footer/menu without content.
have you checked your system/error-log for something like
'Warning: Cannot add header information - headers already sent by (output started at file.php:23)'
The next thing I would try would be to add elses after both your if-elseif trees, with a simple echo "I'm here"; type line, just to see which variable is causing the problems. This won't fix anything, but it might help localize the problem.
OK, just looked at it and tried adding an event (I hope that was alright). And yes, the URL looks fine. However there definately should have been an error message. Double check the logs for the "Cannot send headers" message. I know you said it wasn't there before when volka asked. If its not there now, ether PHP is dropping all errors without telling/logging or you're looking in the wrong place. If you find them in a new place and older ones are also there then this is the common problem and can be fixed by reading the sticky announcements at the top of this forum.
[Thu Aug 22 11:17:51 2002] [error] PHP Warning: Cannot add header information - headers already sent by (output started at /usr/home/faog/staffpages/staffpage_fns.php:133) in /usr/home/faog/staffpages/staffpage_fns.php on line 54