Reply to Re: How to have line breaks in this text

Your name:

Reply:


Posted by Krustov on 11/30/06 01:18

<comp.lang.php>
<Rock>
<Thu, 30 Nov 2006 11:42:41 +1100>
<456e2bfe$0$9770$afc38c87@news.optusnet.com.au>

> This is it....
>
>
> define('UNOTIFY_MESSAGE','Hello, You have requested a Response. Choose a pdf
> file and download it. Read it then come back to this site. Use the email
> address and password you used to Login into your Account. Thank you for
> supporting us and enjoy your day');
>
> ----------------------------------
> I want it to be like this..
>
>
> Hello,
>
> You have requested a Response.
>
> Choose a pdf file and download it. Read it then come back to this site.
>
> Use the email address and password you used to Login into your Account.
>
> Thank you for supporting us and enjoy your day
>

Guesswork - your missing the <?php ?> tags if you can see the code .

\n\n will do the line breaks for you .



<?php

$ewho="webmaster@yourdomain.com";

$datesent=date("l dS of F Y h:i A");

$ip=$_SERVER['REMOTE_ADDR'];

$subject="FROM THE WEBSITE FORM";

$mailhead="From: $ewho \n";

$mailbody ="This email was sent via the website form" . "\n\n";
$mailbody .="DATE: " . "$datesent" . "\n\n";
$mailbody .="IP: " . "$ip" . "\n\n";
$mailbody .="Full Name: " . "$homer_01" . "\n\n";
$mailbody .="Email Address: " . "$homer_02" . "\n\n";
$mailbody .="Contact Number: " . "$homer_03" . "\n\n";

$body .=stripslashes($mailbody);

mail($ewho,$subject,$body,$mailhead);

?>


--
www.phpwhois.co.uk

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация