Contact

Unsuccessful request

\n

Thank you for your attempted request.

\n

Unfortunately you have incorrectly entered the reCaptcha.

“);
echo (” \n

Upon succesful entry of the reCaptcha, the following information will be submitted to Global Advisors.

“);
echo (” \n

Please take care to correctly enter the reCaptcha text at the bottom of this form.

“);
} else {
echo (“

Successful request

\n

Thank you for your request.

\n “);
echo (” \n

The following information has been submitted to Global Advisors.

“);
$success = TRUE;
$emailSubject = “Web query = ” . $_POST[‘Subject’] . ” – ” . $_POST[‘Firstname’] . ” “. $_POST[‘Surname’];

$SQLCols = “`FirstName`,
`Surname`,
`Company`,
`Website`,
`Email`,
`Phone`,
`City`,
`Country`,
`Subject`,
`Message`,
`ContactDate`”;
$SQLVals = “‘” . mysqli_real_escape_string($link,$_POST[‘FirstName’]) . “‘,'” . mysqli_real_escape_string($link,$_POST[‘Surname’]) . “‘,'” . mysqli_real_escape_string($link,$_POST[‘Company’]) . “‘,'”;
$SQLVals = $SQLVals . mysqli_real_escape_string($link,$_POST[‘Website’]) . “‘,'” . mysqli_real_escape_string($link,$_POST[‘Email’]) . “‘,'”;
$SQLVals = $SQLVals . mysqli_real_escape_string($link,$_POST[‘Phone’]) . “‘,'” . mysqli_real_escape_string($link,$_POST[‘City’]) . “‘,'” ;
$SQLVals = $SQLVals . mysqli_real_escape_string($link,$_POST[‘Country’]) . “‘,'” . mysqli_real_escape_string($link,$_POST[‘Subject’]) . “‘,'” . mysqli_real_escape_string($link,$_POST[‘Message’]) . “‘,NOW()”;

$sql=”INSERT INTO `GlobalAdvisors`.`WebsiteContact` (” . $SQLCols . “) VALUES (” . $SQLVals . “)”;

//echo $sql;

if (!mysqli_query($link,$sql))
{
echo mysqli_error($link);
die(‘Error: ‘ . mysqli_error($link));
}

$emailMessage = ‘

Global Advisors logo

Contact request submitted

The following contact request was successfully submitted to Global Advisors.

First name:
Surname:
Email:
Phone number:
Company:
Website:
City:
Country:
Subject:
Query

‘;

$text = ‘Contact request submitted
The following contact request was successfully submitted to Global Advisors.
First name: ‘ . $_POST[‘FirstName’] . ‘
Surname: ‘ . $_POST[‘Surname’] . ‘
Email: ‘ . $_POST[‘Email’] . ‘
Phone number: ‘ . $_POST[‘Phone’] . ‘
Company: ‘ . $_POST[‘Company’] . ‘
Website: ‘ . $_POST[‘Website’] . ‘
City: ‘ . $_POST[‘City’] . ‘
Country: ‘ . $_POST[‘Country’] . ‘
Subject: ‘ . $_POST[‘Subject’] . ‘
Query: ‘ . $_POST[‘Message’] . ‘
Date and time: ‘ . Date(“Y-m-d H:i”);

$emailTo = “info@globaladvisors.biz”;

//Create a new PHPMailer instance
$mail = new PHPMailer();
//Tell PHPMailer to use SMTP
$mail->isSMTP();
$mail->SMTPSecure = “tls”;
$mail->allow_self_signed = true;
$mail->SMTPOptions = array(
‘ssl’ => array(
‘verify_peer’ => false,
‘verify_peer_name’ => false,
‘allow_self_signed’ => true
)
);
$mail->Hostname = $hostfrom;
//$mail->sign_cert_file = “/etc/apache2/globaladvisors.biz.crt”;
//$mail->sign_key_file = “/etc/apache2/globaladvisors.biz.key”;
//Enable SMTP debugging
// 0 = off (for production use)
// 1 = client messages
// 2 = client and server messages
$mail->SMTPDebug = 0;
//Ask for HTML-friendly debug output
$mail->Debugoutput = ‘html’;
//Set the hostname of the mail server
$mail->Host = $host;
//Set the SMTP port number – likely to be 25, 465 or 587
$mail->Port = $port;
//Whether to use SMTP authentication
$mail->SMTPAuth = $auth;
//Username to use for SMTP authentication
$mail->Username = $username;
//Password to use for SMTP authentication
$mail->Password = $password;
//Set who the message is to be sent from
$mail->setFrom($emailFromAddress, $emailFromName);
//Set who the message is to be BCCed to
$mail->AddBCC(“webmaster@globaladvisors.biz”, “webmaster@globaladvisors.biz”);
//Set an alternative reply-to address
$mail->addReplyTo($emailFromAddress, $emailFromName);
//Set who the message is to be sent to
$mail->addAddress($emailTo, $emailTo);
//Set the subject line
$mail->Subject = $emailSubject;
//Read an HTML message body from an external file, convert referenced images to embedded,
//convert HTML into a basic plain-text alternative body
$mail->msgHTML($emailMessage);
//Replace the plain text body with one created manually
$mail->AltBody = $text;

if (!$mail->send()) {
echo ‘

Mailer Error: ‘ . $mail->ErrorInfo .’

‘;
} else {
// echo “Message sent!”;
}
}
} else {
echo “

Insufficient information

\n

You must enter a Firstname, Surname and a valid Email address to submit an application.

“;
echo “

Please fill in the missing items below.

” ;
}
}
?>

Contact Global Advisors

Please fill in the following details to contact us and we will get back to you shortly.

Please note that we strictly cannot accept recruitment applications by any other means than our online application due to our standard response requirements.

‘;
} ?>

‘;
} ?>

Your first name:
Your surname:
Email:
Phone number:
Company:
Website:
City:
Country:
Subject:
Your query
Please enter the reCaptcha text – this allows us to make sure your application is not a robot submission