Hi,
I have the following code in my header file which assists the contact form to function correctly.
<?PHP
require_once($_SERVER['DOCUMENT_ROOT']. "/include/config.php");
require_once($_SERVER['DOCUMENT_ROOT']. "/include/fgcontactform.php");
require_once($_SERVER['DOCUMENT_ROOT']. "/include/captcha-creator.php");
$formproc = new FGContactForm();
$captcha = new FGCaptchaCreator('scaptcha');
$formproc->EnableCaptcha($captcha);
$formproc->AddRecipient($contact);
$formproc->SetFormRandomKey('*************');
if(isset($_POST['submitted']))
{
if($formproc->ProcessForm())
{
$formproc->RedirectToURL("../vielendank");
}
}
?>
The problem is I also have a guestbook page which starts its own session but when I navigate to the guestbook I receive the following error:
Notice: A session had already been started - ignoring session_start() in /var/www/foo/include/fgcontactform.php on line 63
If I try to just include the first code the contact form will not work for some reason.
Any ideas?