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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.