FW: [PHP3] Funky error in php4
| From: | Boget, Chris | Date: | Fri, 04 Feb 2000 18:59:30 +0000 |
| Subject: | FW: [PHP3] Funky error in php4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9824@lists.php.net to get a copy of this message | ||
> That's really strange. I include a lot of files before
> sending headers, and, as long as the whole file is in
> the <? ... ?> tags, and I do not have any echos or
> mysql errors potentialy being spit out, I am fine.
> Show me the script, and I might give you a hint (if I can) -
> an extra pair of eyes help at times...:)
I've determined that the problem occurs *after* I've submitted
a form.
For each form on my site, I have the 'action=' set to PHP_SELF
so I can validate all the data entered in each field. Once everything
checks out, I use the header( "Location: " ); to push to the next
page. I don't print or display anything prior to that header call.
I put the header() code on the first line of the file. If I come into
that file normally, the header(); function triggers and pushes
me to the appropriate page. I comment that line out to get into
the page initially, put it back in then submit the form and that
is when I get the error. If I take that line out again, I get no error.
So it seems to happen only after my form has been submitted.
That explains why the header(); function works sometimes and
not others - it works when there is not form submission but doesn't
when there is...
This is getting wierder by the minute...
Chris
--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin@lists.php.net