DeanWhitehouse Posted April 20, 2008 Share Posted April 20, 2008 Hi, i am creating a CMS/Website template system. I want it so that when the users enter say the title message into a form, but when i test this, the data is displayed on one line( <br> ). How can i make it so that when they enter the data, it saves it as HTML format(in the sense of breaklines) Here are the codes i am using $intro = "Welcome to my portfolio, this site has been entirerly coded by me Please have a look at other pages"; <html> <head> <? require_once 'includes/main.inc.php'; require_once 'includes/db_connect.php'; require_once 'includes/config_table.inc.php'; require_once 'includes/header.php'; require_once 'includes/footer.php'; require_once 'nav_bar.php'; ?> </head> <table id="time"><tr><td><?php echo gmdate('l jS \of F Y');?><br><?php echo gmdate('h:i:s A');?></td></tr></table> </html> <?php if (is_dir(install)) { echo "<p class='exists'><br>Please remove the install folder</p>"; } else { echo "Please go to the admin centre to cutomise the site"; } echo "$intro"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/101934-bbcode-php-form-echos/ Share on other sites More sharing options...
jonsjava Posted April 20, 2008 Share Posted April 20, 2008 <html> <head> <? require_once 'includes/main.inc.php'; require_once 'includes/db_connect.php'; require_once 'includes/config_table.inc.php'; require_once 'includes/header.php'; require_once 'includes/footer.php'; require_once 'nav_bar.php'; ?> </head> <table id="time"><tr><td><?php echo gmdate('l jS \of F Y');?><br><?php echo gmdate('h:i:s A');?></td></tr></table> </html> <?php if (is_dir(install)) { echo "<p class='exists'><br>Please remove the install folder</p>\n"; } else { echo "Please go to the admin centre to cutomise the site\n"; } echo "$intro"; ?> the \n adds a line break Quote Link to comment https://forums.phpfreaks.com/topic/101934-bbcode-php-form-echos/#findComment-521692 Share on other sites More sharing options...
DeanWhitehouse Posted April 20, 2008 Author Share Posted April 20, 2008 how would i do that for when people enter data into a form, and submit it, as this will be data saved from the form Quote Link to comment https://forums.phpfreaks.com/topic/101934-bbcode-php-form-echos/#findComment-521694 Share on other sites More sharing options...
DeanWhitehouse Posted April 20, 2008 Author Share Posted April 20, 2008 no one? Quote Link to comment https://forums.phpfreaks.com/topic/101934-bbcode-php-form-echos/#findComment-522133 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.