Re: Validation: Problems with header(Location) in PHP
| From: | Jason Wong | Date: | Wed, 24 Sep 2003 06:06:48 +0000 |
| Subject: | Re: Validation: Problems with header(Location) in PHP | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163692@lists.php.net to get a copy of this message | ||
On Thursday 25 September 2003 08:46, Martin Raychev wrote:
This is exasperating as well as a waste of time!
> it's not the code snip that is important
Of course it is important. It is *your* code which is causing something which
*ought to work* to not work.
> but the fact that I DO have to
> have header(Location...) statement BEFORE anything else on the second php
> page. How can I do this since in order to validate form data with PHP I
> have to have validating code and the header statement to appear later, i.e.
> not first?
The manual explains quite clearly how and where you should put the header()
statement.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
No matter which way you have to march, its always uphill
-- Murphy's Military Laws n�66
*/