Page 1 of 1

Trouble adding stye to retrieved form info

Posted: Mon Jun 04, 2007 8:23 am
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]

Posted: Mon Jun 04, 2007 8:32 am
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.