Forum Moderators: coopster
The problem i am having is that the information displayed from the database is not properly formatted. Whilst testing it, i entered a couple of paragraphs into the description field, but when it is fetched from the database all the text is joined together in one huge messy cluster.
I need help with formatting the text so that it appears the way it was entered. Dont know if i should have posted this here, but........
thanks in advance
The "countChar()" function is as follows:
function countChar()
{
var msg=document.getElementById('message').value;
if(document.getElementById('message').value.length==1025)
{
alert("You have execeeded the charater limit.");
var len=msg.length;
document.getElementById('message').value=msg.substr(0,len-1);
}
document.getElementById('chars').innerHTML=msg.length;
}
Hope it helps.
if ([url=http://uk2.php.net/manual/en/function.strlen.php]strlen[/url]($input) > 1024) {
// echo back the form with a warning
}
else {
// all ok
}