shadiadiph Posted May 8, 2009 Share Posted May 8, 2009 been playing with this for a while probably quicker to ask i have been adding \n\n to this but probably in the wrong place how can i make the following have a line break after each variable? <textarea><?=$touser?><?=$daterec?><?=$subject?><?=$newmessage?></textarea> Quote Link to comment Share on other sites More sharing options...
Presto-X Posted May 8, 2009 Share Posted May 8, 2009 Would this work? <textarea><?php echo $touser."\n".$daterec."\n".$subject."\n".$newmessage."\n"; ?></textarea> OR <textarea><?=$touser."\n".$daterec."\n".$subject."\n".$newmessage."\n"?></textarea> Quote Link to comment Share on other sites More sharing options...
ILMV Posted May 8, 2009 Share Posted May 8, 2009 <textarea><?php echo($touser."\n\n".$daterec."\n\n".$subject."\n\n".$newmessage); ?></textarea> I haven't tested this, but it should work Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 8, 2009 Share Posted May 8, 2009 ILMV, do you mean \n\n or did you really mean /n/n? Quote Link to comment Share on other sites More sharing options...
ILMV Posted May 8, 2009 Share Posted May 8, 2009 Edited , it's been a long day Quote Link to comment Share on other sites More sharing options...
Presto-X Posted May 8, 2009 Share Posted May 8, 2009 lol I hear ya. Hey I was reading some time back that using <?=?> is bad form vis <?PHP echo ?>, what do you guys think? Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted May 8, 2009 Author Share Posted May 8, 2009 thanks that works great thanks is there anyway to put a double line break before $touser?? Quote Link to comment Share on other sites More sharing options...
Presto-X Posted May 8, 2009 Share Posted May 8, 2009 <textarea><?php echo "\n\n".$touser."\n".$daterec."\n".$subject."\n".$newmessage."\n"; ?></textarea> Quote Link to comment Share on other sites More sharing options...
shadiadiph Posted May 8, 2009 Author Share Posted May 8, 2009 perfect presto-x thanks alot time for me to shut down i think the birds have just woken up the sun has risen and i am still up anyway thanks again Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.