Form Builder Error
I keep on getting this error on any form I create, please help. Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/vhosts/mch-ok.com/httpdocs/Survery.php:1) in /var/www/vhosts/mch-ok.com/httpdocs/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3
I looked through the code and can't seem to find the error. The code for that php is below:
<?php
if (!session_id()) {
session_start();
}
function ValidatedField($page,$field) {
$theFields= "";
$retVal = "";
if (isset($_SESSION["WAVT_".$page."_Errors"])) {
$theFields = "&".$_SESSION["WAVT_".$page."_Errors"];
}
if (strpos($theFields,"&WAVT_".$field."=") !== false) {
$retVal = substr($theFields,strpos($theFields,"&WAVT_".$field."=")+strlen("&WAVT_".$field."="));
}
if (strpos($retVal,"&WAVT_") !== false) {
$retVal = substr($retVal,0,strpos($retVal,"&WAVT_"));
}
if ($retVal == "" && $page == $field) {
$retVal = ValidatedField($page,$field."_Errors");
}
return $retVal;
}
?>


If it is just a headers issue you should be able to resolve this by finding some white space around the php blocks and deleting it, also there is a BOM option you can have when you save pages in DW, if you have this option enabled for the page you should try disabling it when you save the page. Here is a link to an article that has more info on the white spaces:
