Hi, I know this is and old problem, but I can't resolve.
Here is the Warning:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/htdocs/site/contactprocessor.php:2) in /homepages/htdocs/site/contactprocessor.php on line 6
This is my code:
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
session_start();
if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
mail("mail@site.com","From site","Form data:
Requirement: " . $_POST['field_1'] . "
Name: " . $_POST['field_2'] . "
Phone: " . $_POST['field_3'] . "
City: " . $_POST['field_4'] . "
Email: " . $_POST['field_5'] . "
Comment:
" . $_POST['field_6'], "From: $field_2 <$field_5>");
include("confirm.html");
}
else {
echo "<h3>Invalid Captcha String. Please Input It Again.</h3><br /> <FORM>
<INPUT type=\"button\" value=\"Go Back\" onClick=\"history.back()\">
</FORM> ";
}
?>
I really don't now were is the problem. Please if somebody can help me I will appreciate. Thanks.