Jump to content

Need to format my output...


derekbelcher

Recommended Posts

Hi, I am using a form to collect text data, and then spitting it out in an email.  I need help formatting the way it looks in the email.  How can I modify the following code so that it displays with the name of the award in the left cell and the winner (collected from the form) in the right cell.  Left cell should justify to the right and right cell justify to the left and be bold.

 

Any help would be great.  Thanks.

 

$message = "A nomination form has been received.  Nominees are:\r\n\r\n";

$message .= "Ray O. Duncan Award: $duncan\r\n\r\n";

$message .= "Honor Award: $honor\r\n\r\n";

$message .= "Young Professional Award: $young\r\n\r\n";

$message .= "Bea N. Orr Student Award: $orr\r\n\r\n";

$message .= "Scholar Award: $scholar\r\n\r\n";

$message .= "Ethnic Minority Grad Fellow Award: $gradfellow\r\n\r\n";

$message .= "Recreation/Leisure Leadership Award: $rec\r\n\r\n";

$message .= "Elementary Teacher of the Year: $etoy\r\n\r\n";

$message .= "Middle School Teacher of the Year: $mtoy\r\n\r\n";

$message .= "High School Teacher of the Year: $htoy\r\n\r\n";

$message .= "K12 Dance Educator of the Year: $danceEd\r\n\r\n";

$message .= "Health Educator of the Year: $health\r\n\r\n";

Link to comment
https://forums.phpfreaks.com/topic/245773-need-to-format-my-output/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.