Re: Re: form not submitting when I change action from PHP_SELF to thanks page
| From: | Bruce Gilbert | Date: | Thu, 06 Oct 2005 13:16:25 +0000 |
| Subject: | Re: Re: form not submitting when I change action from PHP_SELF to thanks page | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223692@lists.php.net to get a copy of this message | ||
when I add that code I can the following error msg when submitting the form..
" *Warning*: Cannot modify header information - headers already sent by
(output started at /home/webadmin/dedicated75.virtual.vps-
host.net/html/fortuneInteractive/Consultation_test.php:6<http://host.net/html/fortuneInteractive/Consultation_test.php:6>)
in */home/webadmin/dedicated75.virtual.vps-
host.net/html/fortuneInteractive/Consultation_test.php<http://host.net/html/fortuneInteractive/Consultation_test.php>
* on line *168* "
line 168 is the one with header( 'Location: thanks.php' );
on it.
can anyone explain why this is happening and how to rectify?
TIA
On 10/5/05, Robert Cummings <robert@interjinn.com> wrote:
>
> On Wed, 2005-10-05 at 21:15, Bruce Gilbert wrote:
> > thanks for the reply.
> >
> > and where on the page would that need to go? Within the head tags?
> > and would it need to be within <?php ?>
>
> Right after this line:
>
> mail ($to, $subject, $msg, $mailheaders);
>
> And you will already be within PHP interpretation.
>
> Cheers,
> Rob.
> --
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting |
> | a powerful, scalable system for accessing system services |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for |
> | creating re-usable components quickly and easily. |
> `------------------------------------------------------------'
>
>
--
::Bruce::