Ok so I have a working form that concatenates a bunch of variables together(thanks to digitalosophy and njs12345 for their help) My variable called $message ends up looking like this when I send it
Address: blah blah Name: blah blah Phone: blah blah
How do I put line breaks in between them so it looks like this
Address: blah blah
Name: blah blah
Phone: blah blah
if you need the php file itself, its in this forum under the title php parse error
system
September 2, 2003, 6:16pm
3
Syntax,
Thank you but could you please be a little more specific? I am brand new to PHP. What would the formatting look like?
$message = "Name :".$name."
" ;
is the line I have now. How would I change it?
PS - On a side not, what are the
tags for?
system
September 2, 2003, 6:20pm
4
if the $message variable will be printed on screen with an echo (like echo $message;) in a web page you can use
$message = "Name :".$name."< br>";
use the < br> without the space betwen < and b
the
adds a line break
system
September 2, 2003, 6:22pm
5
hmm. Thats what I have now but for some reason it doesnt work.
system
September 2, 2003, 6:22pm
6
or try this:
$message= "Name: $name
Email: $email
Address: $address
";
system
September 2, 2003, 6:27pm
7
i got it to work with the br tags. Thanks for all of your help.