Forum Moderators: coopster

Message Too Old, No Replies

php form to text start new line

         

AmyNY

12:31 am on Nov 16, 2003 (gmt 0)

10+ Year Member



editing form to text script called Phorm, the following is in the script, I want to make a very long form with many variables so I need to make the variables go on to the next line instead of going endlessly across the page

$PHORM_LOG = "textlog.txt";
$PHORM_LOGVAR = "name PHORM_FROM Comments";

have tried adding <br>

$PHORM_LOG = "textlog.txt";
$PHORM_LOGVAR = "name PHORM_FROM Comments"<br>;
$PHORM_LOGVAR = "street_address city";

and after reading at webmasterworld

$PHORM_LOG = "textlog.txt";
$PHORM_LOGVAR = "name PHORM_FROM Comments"\n;
$PHORM_LOGVAR = "street_address city";

and

$PHORM_LOG = "textlog.txt";
$PHORM_LOGVAR = "name PHORM_FROM Comments"\r\n;
$PHORM_LOGVAR = "street_address city";

does r means return? and n means new line?

what do i do?

Thanks

Amy

AthlonInside

5:07 am on Nov 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



from my experience, using \n is sufficient.