CKAP Welcome sharing the embedded excitement
New user?
 
 
 
 

Contact me

To express your feel about this site or to give any suggestions or may be anything else, please write to me. I would love to appreciate your concern.

Fill the form below and send me a message.

Name
Email
Message
Secure Code CAPTCHA Image

 
 
 
 
Copyright © 2011 www.ckap.in
Personal website - C. K. Anantha Prasad
EOD; //--------------------------------- end of form ------------------------- //--------------------------------- start of success page --------------- $html_success=<< Contact - C. K. Anantha Prasad
CKAP Welcome sharing the embedded excitement
New user?
 
 
 
 

Success

Your message has been sent successfully.

 
 
 
Copyright © 2010 www.ckap.in
Personal website - C. K. Anantha Prasad
EOD; //--------------------------------- end of success page ------------------ include("dbconfig.php"); session_start(); // mainly session started for securimage - CAPTCHA include("securimage/securimage.php"); //Input vaildation and the dbase code if ( $_GET["op"] == "send" ) { $securimage = new Securimage(); if ($securimage->check($_POST['captcha_code']) == false) { echo "
Sorry, the Anti spam code you entered was wrong Go back and try again.
"; die (""); } $bInputFlag = false; foreach ( $_POST as $field ) { if ($field == "") { $bInputFlag = false; } else { $bInputFlag = true; } } // If we had problems with the input, exit with error if ($bInputFlag == false) { die( "Problem with your info. Please go back and try again."); } $mail->FromName = $_POST[name]; //$mail->From = "alerts@ckap.in"; $mail->AddReplyTo($_POST[email], $_POST[name]); $to = "ananthaprasad.ck@gmail.com"; $subject = "Message from ckap.in website"; $mail->isHTML(true); $mail->CharSet = 'UTF-8'; //sending the mail $mail->AddAddress($to); $mail->Subject = $subject; //end-----------------------------------------------email message--------------------------------------- $message = << Confirm registration of your account with ckap.in

$_POST[message]


--
$_POST[name]
$_POST[email]

This message was sent from $_SERVER[REMOTE_ADDR]

EOD; //end-----------------------------------------------email message--------------------------------------- $mail->Body = $message; $mail->WordWrap = 50; if($mail->Send()) { // Redirect to thank you page. Header("Location: contacts.php?op=thanks"); } else { echo "Mailer Error: " . $mail->ErrorInfo; echo "Could not send.. try later"; die(); } } // end if //The thank you page elseif ( $_GET["op"] == "thanks" ) { echo $html_success; } //The web form for input ability else { echo $html_form; } ?>