CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Multiple parameters in Message body?

Print topic Send  topic

Author Message
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.
View profile  Send private message
ckroon

Posts: 869
Posted: 08/18/2007, 11:06 PM

:-D
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.
View profile  Send private message
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!

:-D
_________________
Walter Kempees...you are dearly missed.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.