".$selectUser."
".mysql_error()); $num_rows = mysql_num_rows($resultUser); if($num_rows > 0) { $_POST['findUser'] = 1; $row = mysql_fetch_assoc($resultUser); $userID = $row['ApplicationID']; $selectID = "SELECT * FROM application WHERE ID = '$userID'"; $resultID = mysql_db_query($DBName,$selectID,$Link) or die("Error returned if any:
".$selectID."
".mysql_error()); $row2 = mysql_fetch_assoc($resultID); $refNum = $row2['ReferenceNo']; $uEmail = $row2['Email']; } else { $form_error1 .= "
  • Sorry we are unable to find your account.
  • "; } } if($_POST['submit'] == "Submit") { $wasSent = ""; $form_error = ""; if($_POST['name'] == ""){$form_error .= "
  • Please enter your name.
  • ";} if($_POST['country'] == ""){$form_error .= "
  • Please enter your country.
  • ";} if($_POST['testimonial'] == ""){$form_error .= "
  • Please enter your testimonial.
  • ";} if($form_error == "") { if($_POST['show_name'] == "yes") { $showInfo = "Agree to display is name and is testimonial on our Testimonial website"; } else { $showInfo = "Do not Agree to display is name and is testimonial on our Testimonial website"; } //########################## send email ##################################### include_once("class.phpmailer.php"); $to = "info@canadianimmigrationlottery.com"; // subject $subject = "Testimonial"; // message $message = " Applicant Name : ".$_POST['name']."
    Applicant Reference number : ".$_POST['refNum']."
    Applicant country: ".$_POST['country']."

    Applicant Testimonial :
    ".$_POST['testimonial']."

    Applicant ".$showInfo."

    "; $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->IsHTML(true); $mail->Host = "smtp10.bellnet.ca"; // SMTP server $mail->Mailer = "smtp"; $mail->From = $_POST['uEmail']; $mail->AddAddress($to); $mail->FromName = $_POST['name']; $mail->Subject = "My Testimonial"; $mail->Body = $message; $mail->WordWrap = 50; if(!$mail->Send()) { $form_error .= "
  • A problem occurred will trying sending your testimonial
  • "; } else { $wasSent = "1"; $form_error2 .= "
  • Thank you for your testimonial
  • "; } //################################################################ } } ?> Canada Immigration - Canada Immigration Financial Assistance
     Send us your testimonial
     

    User Name   
    Password   
     
    Name
    Country
    Display my name with my testimonial on your “Testiminial” page
    Do not display my name with my testimonial on your “Testiminial” page

    Testimonial: