This topic is locked

I just added a simple event and I get an error

6/28/2006 9:04:20 AM
PHPRunner General questions
M
mike-pt author

I need to add events to my database so I though I would try a simple one to see how it goes. I added a message to appear after a successful login.
I tried to login and the page displays the following:
Your message here

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxxxx/public_html/xxxxxxxx/include/events.php:5) in /home/xxxxxxx/public_html/xxxxxxxx/login.php on line 119
I have replaced parts of path with xxxxxxxx
Also just tried before login and got this error:
Parse error: syntax error, unexpected T_RETURN in /home/xxxxxxxx/public_html/xxxxxxxx/include/events.php on line 10
Any ideas anyone?
Thanks
Mike

Alexey admin 6/28/2006

Mike,
it's not recommended to output anything in Before Login and After Successful Login events.

Your output breaks the redirection after successful Login.

M
mike-pt author 6/28/2006

Thanks for that.
I was just experimenting with the events because I have to create an event as I mentioned in my other post: http://www.asprunner.com/forums/index.php?showtopic=2877
If you could help on that one that would be appreciated.
Thanks for clearing up this one though.
Regards

Mike