11-09-2008, 11:34 PM
|
#2 (permalink)
|
|
The Contributor
Join Date: Nov 2008
Location: Norway
Posts: 58
Thanks: 20
|
Quote:
Originally Posted by Peuplarchie
- I'm know about an if isset function but I don't really know how to implement it into this code.
|
I must admit I fail to understand your problem. Where and why do you want to use an isset() function? To check if <some field> is set, or not empty?
Quote:
Originally Posted by Peuplarchie
- I would also like to template each new addition in a table ??
EX: <table><tr><td>NEWLY ADDED TEXT</td></tr></table>
|
You would like to add the new text within a table? Why not just do it like this, then:
PHP Code:
// Your other code
$newtext = nl2br( $newtext );
$newtext = '<table><tr><td>' . $newtext . '</td></tr></table>';
I must, however, point out that my code above contains poorly formatted HTML and you come up with what serves you best. The user may include several tags which will break and unvalidate the final text, but my code should hopefully give you an idea or two.
|
|
|