include("htmlMimeMail-2.5.1/htmlMimeMail.php"); $exp = 60*60*24*365; session_set_cookie_params($exp); session_start(); if($s != "") session_register('s'); if($HTTP_SERVER_VARS['REQUEST_METHOD'] == "POST") { if($s == "") $s = "bootcamp_downloads"; $hostname = "sdb.seniorleads.com"; $usernamedb = "admingoldmine"; $passworddb = "p9jsso4eWKdpm+I9d99kUA=="; $dbName = "goldmineExport"; $link = MYSQL_CONNECT($hostname, $usernamedb, $passworddb); @mysql_select_db("$dbName") or die("Could not connect"); $query = "insert into leads (date, email, lastname, firstname, phone, source) values (now(), '$email', '$lastname', '$firstname', '$phone', '$s')"; mysql_query($query); header("Location: bootcamp_links.html"); exit; } ?>