line brake
4 posts
Page 1 of 1
Hello I have a text box on my form and when I press return it shows up how do I display the return on my display page.
Code:
while($output = mysql_fetch_assoc($query)) { echo '<font color="red"><h3>' .$output['subject'].'</h3></font>'; echo 'Published By: ' .$output['postedby']. '<br/><br />'; echo $output['news'].'<br / ><br />'; echo 'Published Date: '; echo date('l dS F Y ', $output['date']).'<br / >'; }
Code:
while($output = mysql_fetch_assoc($query)) { echo '<font color="red"><h3>' .$output['subject'].'</h3></font>'; echo 'Published By: ' .$output['postedby']. '<br/><br />'; echo $output['news'].'<br / ><br />'; echo 'Published Date: '; echo date('l dS F Y ', $output['date']).'<br / >'; }
Use nl2br function built into php
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023