ckroon
Posts: 869
|
| Posted: 08/18/2007, 6:07 PM |
|
On Record form's After Execute Update Event, I have a Send email action.
I get the option of putting in one form component iwth the drop down menu in the configuration window, but I want to have a few components show up in the message of the email, separated by some text.
This is the way it is now
$message = $Component->mail_status->GetText();
How do I add the component student_id to the message body along with the text "your student:" ?
Thanks!
_________________
Walter Kempees...you are dearly missed. |
 |
 |
ckroon
Posts: 869
|
| Posted: 08/18/2007, 11:06 PM |
|

I figured it out (thank god)
Need to separate all Message items with a period and enclose all extra fill text with quotation marks. Sample is below.
$message = "Your withdrawal request status for student".$Container->student_id->GetText()."----".$Container->last_name->GetText()." is ".$Container->status->GetText();
_________________
Walter Kempees...you are dearly missed. |
 |
 |
wkempees
|
| Posted: 08/19/2007, 4:30 AM |
|
$message = 'Your withdrawal request status for student ';
$message .= $Container->student_id->GetText();
$message .= ' ---- ';
$message .= $Container->last_name->GetText();
$message .= ' is ';
$message .= $Container->status->GetText();
.. more readable, easier to ammend.
.. use single quotes not double. It is not wrong but in PhP single quotes are
literal text where double quotes are always evaluated by PhP. This way save
processing.
Greetz,
Walter
|
|
|
 |
ckroon
Posts: 869
|
| Posted: 08/19/2007, 10:10 AM |
|
All Hail Walter!
_________________
Walter Kempees...you are dearly missed. |
 |
 |
|