Re: headers already sent on login with quickform
| From: | Andrea Bakker | Date: | Mon, 15 Mar 2010 11:55:08 +0000 |
| Subject: | Re: headers already sent on login with quickform | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30411@lists.php.net to get a copy of this message | ||
Thanks to everyone who has looked at this. I thought it was a quickform thing as I was convinced I had taken out all the white space, but it turns out there was a space at the end of the closing tag !!
Thanks again for your great support
Andrea
----- Original Message ----- From: "Alexey Borzov" <borz_off@cs.msu.su>
To: "Andrea Bakker" <abakker@telkomsa.net>; "pear-general" <pear-general@lists.php.net>
Sent: Monday, March 15, 2010 9:12 AM
Subject: Re: [PEAR] headers already sent on login with quickform
Hi Andrea, On 15.03.2010 14:10, Andrea Bakker wrote:Sorry, the line 15 it is referring to is the closing ?> tag which is the last line of code in the login_form_test Warning: Cannot modify header information - headers already sent by (output started at /home/jbaykids/public_html/lib/login_form_test.php:15) in /home/jbaykids/public_html/logtest.php on line 101) Please reply to the list, 2) You probably have some whitespace in that file after the closing tag. Either remove that whitespace or remove the closing tag altogether.----- Original Message ----- From: "Alexey Borzov" <borz_off@cs.msu.su> To: "Andrea Bakker" <abakker@telkomsa.net> Cc: "pear general" <pear-general@lists.php.net> Sent: Monday, March 15, 2010 8:53 AM Subject: Re: [PEAR] headers already sent on login with quickformHi Andrea, On 15.03.2010 13:38, Andrea Bakker wrote:I've googled this topic quite a bit and I don't think I understand the way quickform works. I have reduced my code to the minimum and am still getting headers already sent . My login_test_form is just a simple quickform with a username& Password. I've taken out all rules. Does the $loginform->validate() send header info ? If so how can I ever redirect without getting the "headers already sent" error ?You are not quoting the whole error message. PHP usually adds "output started on..." to that.