Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 Error using PHP processing for forms
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rmmarsh
Super User

USA
396 Posts

Posted - 07 May 2011 :  22:38:32  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
This is the error I'm getting:

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwmar1/public_html/pragerphoneapps.com/about.php:1) in /home/wwwmar1/public_html/pragerphoneapps.com/about.php on line 34


The URL is pragerphoneapps.com/about.php

What do I have to change in DHE to fix this?


Edited by - rmmarsh on 09 May 2011 01:28:06

2hats
Practical

36 Posts

Posted - 09 May 2011 :  04:00:51  Show Profile  Visit 2hats's Homepage  Reply with Quote
Make sure there are no spaces before <? at top of page.
Go to Top of Page

s.dav
Site Admin

Italy
3364 Posts

Posted - 09 May 2011 :  08:58:04  Show Profile  Visit s.dav's Homepage  Reply with Quote
This is a known issue; this error happens when your page is using a UTF8 encoding (this can be assigned automatically by D.H.E. when needed); in this case D.H.E. appends a so called "BOM" character to the beginning of the generated file and PHP is not able to understand it. This issue has already been fixed in version 6.0

Regards, Davide
Go to Top of Page

rmmarsh
Super User

USA
396 Posts

Posted - 09 May 2011 :  15:03:52  Show Profile  Visit rmmarsh's Homepage  Reply with Quote
I don't see anywhere that Release 6 is available yet. This is what's at the top of the about.php file:


<META http-equiv="Pragma" content="no-cache"><?php
function dhwe_sendMailTextForm1()
{
$charset = '';
$header = 'From: DHWE_Processor';
if ($charset!='')
$header = 'MIME-Version: 1.0' . "\r\n" . "Content-type: text/plain; charset=$charset" . "\r\n" . $header;

$to = 'support@pragerphoneapps.com ';


I fixed it by moving the META statement to the HEAD. The message is gone, and it works like it's supposed to (goes to success page). However, still can't get the values of the radio buttons to work. (another post)

Edited by - rmmarsh on 09 May 2011 15:09:13
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000