PHP - "Notice: Undefined index"

0 Cevap

Notice: Undefined index: Undefined index: Undefined index: on line / var / www / mailer.php 13 Uyarı mesajı on line / var / www / mailer.php 12 Uyarı özne / var / www / mailler den. satırda php 14 Notice: Undefined index: Undefined index: on line / var / www / mailer.php 15 Bildirimi içinde verif_box hattına 23 hayır değişkenler alınan / var / www / mailer.php yılında tntcon, bu sayfayı doğrudan erişilemez

BELOW IS THE CODE

<?php

ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);

// -----------------------------------------
//  The Web Help .com
// -----------------------------------------
// remember to replace you@email.com with your own email address lower in this code.

// load the variables form address bar
$subject = $_POST["subject"];
$message = $_POST["message"];
$from = $_POST["from"];
$verif_box = $_POST["verif_box"];

// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$from = stripslashes($from);

// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
    // if verification code was correct send the message and show this page
    mail("abhijit.infogence@gmail.com", 'TheWebHelp.com Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
    // delete the cookie so it cannot sent again by refreshing this page
    setcookie('tntcon','');
} else if(isset($message) and $message!=""){
    // if verification code was incorrect then return to contact page and show error
    header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");
    exit;
} else {
    echo "no variables received, this page cannot be accessed directly";
    exit;
    }
?>

0 Cevap