PDA

View Full Version : new member notification


pabsmike
07-26-2009, 03:38 PM
hello,

i have a form in my site connected to a database for registering new members. i would like to add a functionality that will notify me through email when a new member registers.

help greatly appreciated

thanks 8-)

edbr
07-27-2009, 02:08 AM
are you using php and did you code the insert yourself?

pabsmike
07-27-2009, 08:11 AM
my server environment is phplmysql but the insert is the insert server behaviour is one provided in dreamweaver

edbr
07-27-2009, 08:29 AM
ok then you need to add a section that fires after insert has been submitted
mail


define
the variables as (for example)
$mail= "your_emailaddress";
$subject="new member";
$alert= "you have received a new member";

mail($mail,$subject,$alert );

pabsmike
07-28-2009, 09:52 AM
thanks for the code. i guess i have to add this code after the insert code in my webpage.

as in
<?php
dreamweaver generated insert code
?>
<?php
$mail= "your_emailaddress";
$subject="new member";
$alert= "you have received a new member";
mail($mail,$subject,$alert );

?>

i hope i'm on the right track

edbr
07-28-2009, 11:13 AM
yes you are it might get tricky with DW generated code but in theory at least it will do it. 1 proviso is tht not seeing the code it may fire everytime the page is loaded if so post back and post the whole code and ill try to wade through it ( DW code can be a tad confusing)