derekbelcher Posted August 26, 2011 Share Posted August 26, 2011 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"; Quote Link to comment Share on other sites More sharing options...
codefossa Posted August 26, 2011 Share Posted August 26, 2011 Set header and send HTML email. Quote Link to comment Share on other sites More sharing options...
derekbelcher Posted August 26, 2011 Author Share Posted August 26, 2011 not sure what that means. The email function is working. I am getting data, but I just want to format how it looks. Quote Link to comment Share on other sites More sharing options...
codefossa Posted August 26, 2011 Share Posted August 26, 2011 http://www.webhostingtalk.com/showthread.php?t=416467 Quote Link to comment Share on other sites More sharing options...
voip03 Posted August 26, 2011 Share Posted August 26, 2011 use CSS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.