lena_k198 Posted November 18, 2009 Share Posted November 18, 2009 PLEASE help!! i have no idea how to make the items to apper bold in the output: $message = "First Name: $first_name\n\n"; $message .= "Last Name: $last_name\n\n"; $message .= "Company: $company\n\n"; $message .= "Address: $address\n\n"; $message .= "Address 2: $address2\n\n"; $message .= "City: $city\n\n"; $message .= "State: $state\n\n"; $message .= "Zip Code: $zip\n\n"; $message .= "Phone Number: $phone\n\n"; $message .= "Phone (secondary): $phone2\n\n"; $message .= "E-mail: $email\n\n"; $message .= "Comments: $comments\n\n"; $message .= "Insurance Company: $ins_company\n\n"; $message .= "Claim Number: $claim\n\n"; $message .= "Agent: $agent\n\n"; $message .= "Agent Phone: $agent_phone\n\n"; $message .= "Adjuster: $adjuster\n\n"; $message .= "Adjuster phone: $adjuster_phone\n\n"; $message .="Damage to Property:"; foreach ($damage as $damage){ $message.="$damage;";} $message .="Services Required:"; foreach ($services as $services){ $message.="$services;";} Quote Link to comment https://forums.phpfreaks.com/topic/182053-how-to-make-items-bold/ Share on other sites More sharing options...
Mchl Posted November 18, 2009 Share Posted November 18, 2009 http://www.w3schools.com/html/html_formatting.asp Quote Link to comment https://forums.phpfreaks.com/topic/182053-how-to-make-items-bold/#findComment-960333 Share on other sites More sharing options...
taquitosensei Posted November 18, 2009 Share Posted November 18, 2009 It all depends on where the output is going to be outputted ( is that even a word? ) If it's html then $message.="<b>First Name</b>: ".$first_name."\r\n"; if it's plain text like in an e-mail I think you're out of luck. You could do html formatted e-mail though and use the above. Also it's supposed to be \r\n not \n\n unless you are looking for a double carriage return. in which case I would use \r\n\r\n Quote Link to comment https://forums.phpfreaks.com/topic/182053-how-to-make-items-bold/#findComment-960334 Share on other sites More sharing options...
Mchl Posted November 18, 2009 Share Posted November 18, 2009 It all depends on where the output is going to be outputted ( is that even a word? ) Put conjugation - I would assume 'output' then. If it's html then [...] if it's plain text like in an e-mail I think you're out of luck. Good noting that. I assumed it's going to be HTML Quote Link to comment https://forums.phpfreaks.com/topic/182053-how-to-make-items-bold/#findComment-960339 Share on other sites More sharing options...
taquitosensei Posted November 18, 2009 Share Posted November 18, 2009 Plus if it's html it's actually <br> not \r\n Quote Link to comment https://forums.phpfreaks.com/topic/182053-how-to-make-items-bold/#findComment-960372 Share on other sites More sharing options...
Mchl Posted November 18, 2009 Share Posted November 18, 2009 That's what nl2br is for Quote Link to comment https://forums.phpfreaks.com/topic/182053-how-to-make-items-bold/#findComment-960380 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.