A
|
alang 2/2/2008 |
Certainly - in the same event code execute an SQL statement on your staff table and use the email address returned as the recipient of a second email. |
J
|
Jane 2/4/2008 |
Steve, $conn; $str = "select Email from TableName where TeacherID=".$values["TeacherID"]; $rs = db_query($str,$conn); $data = db_fetch_array($rs); $email = $data["Email"];
|
S
|
smcgo4 author 2/4/2008 |
Hi Jane Steve, to select email from another table use this sample code: where Email and TeacherID are your actual field names in the TableName table. |
L
|
laonian 2/4/2008 |
You may try this one. |
S
|
smcgo4 author 2/4/2008 |
Works like a charm! You guys and gals are fantastic. People are going to think I am so clever! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=25538&image=1&table=forumreplies' class='bbc_emoticon' alt=':lol:' /> |