Hello, I was able to get such great help on another issue, I thought I would press my luck ;-)
I have a simple form that posts the data to a database table on submit and I would like to ALSO have it send the data to the admin email address. Or even just send a notification email, so the admin will check the database.
What code do I need to add in order to do this? Or is this even php code needed?
Here is what I have now:
<?php
$con = mysql_connect("host","user","pw");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("db", $con);
$fullname = $POST['fullname'];
$email = $POST['email'];
$companyname = $POST['companyname'];
$companywebsite = $POST['companywebsite'];
$adspace = $POST['adspace'];
$length = $POST['length'];
$howlong = $POST['howlong'];
$adcreation = $POST['adcreation'];
$adtype = $POST['adtype'];
$addons = $POST['addons'];
if( mysql_query("INSERT INTO gmradapply2009 (fullname, email, companyname, companywebsite, adspace, length, howlong, adcreation, adtype, addons)
VALUES ('$fullname', '$email', '$companyname', '$companywebsite', '$adspace', '$length', '$howlong', '$adcreation', '$adtype', '$addons')") === FALSE ) {
die('Error: ' . mysql_error());
}
echo "";
mysql_close($con)
?>
THANKS so much!