On Thu, October 6, 2005 9:37 am, Robert Cummings wrote:
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-
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-
Check to make sure absolutely nothing before the header() function is outputing
anything. No echos, no prints, no var_dumps, no HTML or even blank lines.
If it's something tangible like an echo or print or something, then putting an
exit()/die() function right before the header() function then
I checked and no white space involved. What would I need to put tin the
exit()/die() function?
On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Check to make sure absolutely nothing before the header() function is
outputing anything. No echos, no prints, no var_dumps, no HTML or even
Here's the simple solution (put it at the top of your script:
ob_start();
Cheers,
Rob.
On Thu, 2005-10-06 at 10:30, Bruce Gilbert wrote:
I checked and no white space involved. What would I need to put tin the
exit()/die() function?
On 10/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
You don't have to put anything specific, it just stops the script from
executing.
You can optionally put text in there. I like using die() for some reason
(shorter? more.. err.. aggressive? hah) so I'll using commands like:
die(Made it to this point...);
I might use this to see if I got to
when I put the die statment in and test the form I get, the html prior to
the form and what I put in my die statement eg:made it to this point. The
form submits and I get the info, but I am not redirected to the Thanks page.
My question is how do I determine from this what is causing my error?
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 ?
???
On 10/5/05, Robert Cummings [EMAIL PROTECTED] wrote:
On Wed, 2005-10-05 at 20:44, Bruce Gilbert wrote:
I have a form that submits and returns on the same page
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
9 matches
Mail list logo