Thank You

$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
//echo $contents;
fclose($handle);
?>
if($_SERVER['REQUEST_METHOD']=="POST" && isset($_POST['submit_email'])) {
if ((isset($_POST['email'])) && (strlen(trim($_POST['email'])) > 0)) {
$email = stripslashes(strip_tags($_POST['email']));
$set=1;
global $wpdb;
$table=’download_email’;
$data = array(‘email’ => $_POST["email"],’download_link’ => $contents );
//$format=array(‘%s’,’%s’);

$wpdb->insert( $table, $data );
} else
{
$error_msg = ‘No email entered’;}
}

?>


echo 'Click Here To Download Now‘;
}

else {?>

Enter your email address to download