
|
 |
FREE puzzles to print out at home! Just CLICK HERE to enter your email!
|
|
 |
Get KenKen in Your Paper! |
|
| |
Wouldn't you love to wake up to your morning paper, and instead of doing the same old crossword puzzle, look forward to a new and challenging game of KenKen? Well, maybe you can. Just take a moment to send us an email, with your name and the full name of your local newspaper, and we will contact them on your behalf requesting they run a daily KenKen puzzle for you and everyone else that reads their paper!
Also, feel free to contact us at info@kenken.com if you have any questions
, Jeremy Dubert ' ;
// End Edit
$message ="
Dear, $fName
Thank you for your interest in KENKEN ®. Will Shortz, New York Times puzzle editor says \"KenKen is the most addictive puzzle since sudoku\"!
We have passed your request for the $aNews to our agents. It is also helpful if the newspaper hears about KENKEN directly from its readers.
Here are some additional places you can find KENKEN puzzles:
- http://kenken.com interactive player with puzzles from 4x4 to 9x9 daily.FREE
- A selection of books, magazines and an electronic handheld are also now available. Click the store link at www.kenken.com.
- You can also find KENKEN in the USA edition of Readers Digest and http://readersdigest.com/kenken. FREE (online)
- Two KENKEN puzzles appear daily Monday-Saturday in the NY Times
Please share KENKEN with your friends and family!
Happy KenKen-ing!
";
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .="Reply-To: BOUNCE_ADDRESS@BOUNCE.com\n";
// Additional headers
$name = $fName.' '.$lName;
$headers .= 'From: ' . $name . '<'.$aEmail.'>' . "\r\n";
$headers .= 'Cc: ' . "\r\n";
//END OF CREATING THE EMAIL===========================================================================================
//INPUT DATA INTO DATABASE============================================================================================
//this functions is used so that the NULL assignment can be done just in case those fields are not filled out
function createandexecutequery($fName,$email,$comment,$lName="NULL",$city="NULL",$state="NULL",$news="NULL"){
//create connection
$dLink = mysql_connect('localhost','kenkenco_contact ','contact1') or die('Error - Connection to database.');
mysql_select_db("kenkenco_contactRequests");
//create query
$query = "INSERT INTO `contactRequests` (`cID`,`fName`,`lName`,`email`,`city`,`state`,`news`,`comment`)
VALUES('NULL','$fName','$lName','$email','$city','$state','$news','$comment')";
//execute query
$result = mysql_query($query);
if(!$result)
return false;
else
return true;
//close connection
mysql_close($dLink);
}
if(createandexecutequery($fName,$aEmail,$aComment,$lName,$aCity,$aState,$aNews))
mail($mailto, "Request for KenKen", $message, $headers);
else
echo "There was an error inputting your information.";
include_once 'thankyou.html';
else:
//tell user there was an empty field that is necessary
include_once 'error_emptyfields.html';
include_once 'contactform.html';
endif;
endif;
?>
|
|
|
| |
|
|
| |
|
|
|
|
|
|