Contact form send notification to sender and recepient
Posted: Sun Oct 15, 2006 10:40 am
In the tag 'function.contact_form.php' i'm missing the possibility to send a message to both the webmaster as the visitor who fills out the form. A sort of notification to the visitor to let them know what information was filled out in the form.
I was looking in the code myself and know dat I have to moderate is in this part of the code, but could find out what to add/change.
It must be someting like this.
But I don't know where to put it, and what the code for the whole script is.
I was looking in the code myself and know dat I have to moderate is in this part of the code, but could find out what to add/change.
Code: Select all
elseif (@mail($to, $subject, $extra)) {
echo '<div class="formMessage"><b><font color = "red" size="4"> Uw bericht is succesvol verzonden!</b></div></font>' . "\n";
return;
Code: Select all
elseif (@mail($email, $subject, $extra))
But I don't know where to put it, and what the code for the whole script is.