Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/shop/functions/fnc_add_email.php
<?php
include("../../config/config.php");

$email_address = $_GET['email_address'];

//validate email address

if($email_address!=""){
	
	$sql = "INSERT INTO customers (email_address, mailing_list) VALUES ('$email_address', 'yes')";
	$results = mysql_query($sql);
	echo "Thank you, we will keep in touch";
}else{
	echo "<span style='color:red;'>Error, you must enter email address. Please enter email address</span>";
}

?>
Return current item: Simple PHP Shopping cart - asaancart