Trouble adding stye to retrieved form info

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
malloy
Forum Newbie
Posts: 15
Joined: Fri Jun 01, 2007 2:02 am
Location: Melbourne, Australia

Trouble adding stye to retrieved form info

Post by malloy »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi everyone,

I have built a form that will post the the following information and email it to a nominated email account.

Code: Select all

$headers .= "Name of Child: " . $_POST["name"]. "\n";
$headers .= "Birth date: " . $_POST["dob"]. "\n";
$headers .= "Current age of Child: " . $_POST["age"]. "\n";
$headers .= "Language(s) Spoken at Home: " . $_POST["language"]. "\n";
$headers .= "Child resides with: " . $_POST["resides"]. "\n\n\n";
The problem is the email is very plain and difficult to read. I was wondering if there is a way to style the posted information to make it easier to read. For example make the answers Bold and aligned neatly. I have been searching the net and books but cannot find any example syntax. I'm sure there is a way.

Any help would be greatly appreciated,

Kind regards,

Malloy


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

In plain text, there's not a lot you can do. If you're referring to HTML, there's a lot you can do.

If you're going to send HTML, you need to send plain text too, or you'll get hit hard by spam filters.

Swiftmailer may be of interest too.
Post Reply