Hello,
1)I am working on a function which can be reused in several tasks. Anyway I find the php engine automatically adds some extra <br />tags into the textarea when the user inserts the newlines and I think it would be some kind of eyesore when the user see that.Is there a way to eliminate those redundant codes?
//the code
function callform(){
global $message;
print"<form action=....>
<textarea name=message>$message</textarea>";
<input type=submit name=submit value=submit></form>
}
....
$message=nl2br($message);
...
2)Is it possible to "update" the content of a registered variable in a session?
Many thanks.