Brian
|
| Posted: 08/02/2002, 5:29 AM |
|
i have this code but it doesn't match could someone tells; me what wrong with
any support will be a big help
<?php
//BindEvents Method @1-C8A9C6A3
function BindEvents()
{
global $members;
$members->Insert->CCSEvents["OnClick"] = "members_Insert_OnClick";
}
//End BindEvents Method
function members_Insert_OnClick() { //members_Insert_OnClick @5-35949D28
//Send Email @7-59B11C0D
global $members;
global $username;
$dbinternet = new clsDBdoctorama;
$word = CCGetSession("member_id);
$to = CCDLookUp("email", "members", "member_id='$word'", $dbinternet);
$subject = "Hello";
$message = "here are your informations";
$from = "Doctorama";
$additional_headers = "From: $from\nReply-To: $from";
mail ($to, $subject, $message, $additional_headers);
}
?>
|
|
|
 |
Nicole
|
| Posted: 08/05/2002, 5:44 AM |
|
Brian,
how exactly the code doesn't work?
|
|
|
 |
Brian
|
| Posted: 08/06/2002, 6:08 AM |
|
I always got parse error can not instantiate non existent class dbinterenet
why
|
|
|
 |
Nicole
|
| Posted: 08/07/2002, 4:30 AM |
|
Brian,
please make sure that you haven't created "internet" connection in this project.
Try to use another name while creating new connection.
|
|
|
 |
Brian
|
| Posted: 08/07/2002, 5:18 AM |
|
Nicole
I got it to work, I forget " after member_id. Now I want to be explained how to send this mail, I explain if the member looses his login parameters I wan automatically this informations to be send by doing nothing, I want to automaticate this operation how to do?
any support
|
|
|
 |
|