Click to See Complete Forum and Search --> : Send Confirmation Email
r4gn0
08-19-2006, 10:17 PM
hi, can someone tell how to send a confirmation email to myself@mydomain.com after an insertion in my db is made?...i have a form posted in my page and i want to know when someone fill the form and send it to the database..thxs!
NogDog
08-19-2006, 10:40 PM
mail() function (http://www.php.net/manual/en/function.mail.php)
r4gn0
08-19-2006, 10:43 PM
how should i use it? i dont know how to use the mail() function
NogDog
08-19-2006, 10:46 PM
how should i use it? i dont know how to use the mail() function
Click the link in my previous reply, read the page and study the examples there.
r4gn0
08-19-2006, 11:14 PM
thxs i've done the mail() but im having a problem gettin an info from the form...
<input type="submit" method = "post" value="Aceptar" action="datosaceptados.php">
<input type="hidden" name="nombre_ins" value="nombre_ins"/>
thats the way to send the info? im recieving it whit
$pasinfo = $_POST['nombre_ins'];
but it doesnt show the info
Cytael
08-19-2006, 11:22 PM
$query = "INSERT INTO foo VALUES (bar)";
if(mysql_query($query)) mail("myself@mydomain.com", "DB Add", "New info added to DB");
Tweak to your needs, of course :)
r4gn0
08-19-2006, 11:35 PM
im trying to use an autoresponder..the auto responder itself is workin ok...but i dont know how to make the connection between the person who filled the form and the auto responder...im really confused