/* 發送相關的郵件 */ mail("$email", "Your request for information", "$name\nThank you for your interest!\n We sell fresh corn daily over the Internet! Place your order at http://www.buy.com, and receive a free package of $preference!");
mail("$adminaddress", "Visitor request for info.", "$name requested for information.\n
The email address is $email. \n The visitor prefers $preference.");
/* 把信息插入到表中 */ $query = "INSERT INTO $userstable VALUES('$name','$email', '$preference')";