This topic is locked

Event error - Cannot modify header information

4/3/2009 6:07:03 PM
PHPRunner General questions
S
sikat author

Hi everybody,
Apparently this is an event error but i can not pin point where the error happens. I am trying to redirect to another page after record updated.
header("Location: customer_view.php");

exit();
Now, ideally i want to go to the record that was just edited <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=11463&image=1&table=forumtopics' class='bbc_emoticon' alt=':rolleyes:' />(any help with this as well appreciated!!!), but i ran into trouble just trying to redirect so i am making it simple. the error i get is:
Cannot modify header information - headers already sent by (output started at G:\xampp\htdocs\Doro\customer_edit.php:5)
the error happens in the customer_events.php file
From what i can figure out it might have to do with whitespace (But that is me being a php novice <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=11463&image=2&table=forumtopics' class='bbc_emoticon' alt=':blink:' /> )
All help appreciated
Thanxs.

S
sikat author 4/4/2009

Hi again,
Solved my problem. Just in case someone runs into the same case. I re-built the project and everything worked. In order to be redirected to the view page of the page i just edited the event is
header("Location: schools_view_c.php?editid1=$keys[schoolid]");

exit();
There is probably a smart code to insert the ?editid1= but it works for me!