Dreamweaver generated this code as an Insert for a mysql database. My question is: can I insert a mail() function inside this code to generate an acknowledgment email to the email address entered into the form simultaneously (or, can i reuse the emailAddress variable in this code?)
if ((isset($_POST[“MM_insert”])) && ($_POST[“MM_insert”] == “form1”)) {
$insertSQL = sprintf(“INSERT INTO testID (firstName, lastName, emailAddress, phone, date) VALUES (%s, %s, %s, %s, now())”,
GetSQLValueString($_POST[‘firstName’], “text”),
GetSQLValueString($_POST[‘lastName’], “text”),
GetSQLValueString($_POST[‘emailAddress’], “text”),
GetSQLValueString($_POST[‘phone’], “text”),
GetSQLValueString($_POST[‘date’], “date”));
mysql_select_db($database_iPage, $iPage);
$Result1 = mysql_query($insertSQL, $iPage) or die(mysql_error());
}
 
      
     ). They definitely won’t give out any kind of credit union information (I know I wouldn’t :o). I agree with Topcoder unless information being ask is sensitive in nature, for people don’t want to have that bouncing around the internet. It’s bad enough that big corporations lately have been exposed to security issues and once you lost the trust of of the public then it’s hard to get them back. Specially if you are a small minnow (website) in the ocean (the internet). Just my opinion.
 ). They definitely won’t give out any kind of credit union information (I know I wouldn’t :o). I agree with Topcoder unless information being ask is sensitive in nature, for people don’t want to have that bouncing around the internet. It’s bad enough that big corporations lately have been exposed to security issues and once you lost the trust of of the public then it’s hard to get them back. Specially if you are a small minnow (website) in the ocean (the internet). Just my opinion.