Sindbad~EG File Manager
<?php
/* Set e-mail recipient */
$myemail = "feednationngo@gmail.com";
/* Check all form inputs using check_input function */
$name = check_input($_POST['name'], "Enter your name");
$city = check_input($_POST['city']);
$country = check_input($_POST['country']);
$citizenship = check_input($_POST['citizenship']);
$mobile = check_input($_POST['mobile']);
$mail = check_input($_POST['mail']);
$panno = check_input($_POST['panno']);
/* Let's prepare the message for the e-mail */
$grea = "Hello!
Message from your website: Donator Details
Name: $name
City: $city
Country: $country
Citizenship: $citizenship
Mobile: $mobile
Mail: $mail
PAN Number: $panno
";
/* Send the message using mail() function */
mail($myemail, $name, $grea);
/* Redirect visitor to the thank you page */
?>
<script>
alert('Successfully Sent ...');
window.location.href='index.php';
</script>
<?php
exit();
/* Functions we used */
function check_input($data, $problem='')
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
{
show_error($problem);
}
return $data;
}
function show_error($myError)
{
?>
<html>
<body>
<b>Please correct the following error:</b><br />
<?php echo $myError; ?>
</body>
</html>
<?php
exit();
}
?>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists