Mini Shell

Direktori : /home/funerariamayer/www/php/
Upload File :
Current File : /home/funerariamayer/www/php/contact.php

<?php
include_once './lib.php';
include_once './config.php';
if(!isPostBack()) die('Please send contact form via POST method...');


$Name = htmlspecialchars($_POST['txtName']);
$Email = htmlspecialchars($_POST['txtEmail']);
$Subject = htmlspecialchars($_POST['txtSubject']);;
$preText = "<strong>Sender Name:</strong> $Name <br />";
$preText .= "<strong>Sender Email:</strong> $Email <br />";
$preText .= "<strong>Subject:</strong> $Subject <br /><br />";
$Text = htmlspecialchars($_POST['txtText']);

$Text = $preText . $Text;

if(empty ($Text)) die('Text could not be empty...');
if(!checkEmailAddress($Email)) die('Invalid email address...');

if(!sendmail::send($Email , $contactEmail , $Text , $Subject ))
   die('Could not send message. failed to connect to mailserver.');
   
echo '1';

Zerion Mini Shell 1.0