bhakti_thakkar
07-14-2008, 06:50 AM
Hi all,
i am trying to display the address of the user in a textarea. (using PHPAJAX). i am already displaying the default address in the <textarea> and it works perfect with all breaks and nbsp;'s. But there is an option for the user to change it. i am using PHPAJAX to let the user select the id's from the list and display the address mapped to that ID is displayed in <textarea>.
the problem is now its displaying the address as below
Mr. ABC&lt;br&gt;POLAND
i tried using all possible options like htmlentities() , htmlspecialchars(), nl2br() but all is falling.
below is my code:
function main() {
$Relation_ID = & $this->Relation_ID;
global $db;
if ($Relation_ID!="") {
$Address =(htmlentities(GetRelAddress($Relation_ID)));
alert($Address);
aprint ('RelationInfo' , htmlentities($Address));
}
} // end
what should i do?
Thanks
i am trying to display the address of the user in a textarea. (using PHPAJAX). i am already displaying the default address in the <textarea> and it works perfect with all breaks and nbsp;'s. But there is an option for the user to change it. i am using PHPAJAX to let the user select the id's from the list and display the address mapped to that ID is displayed in <textarea>.
the problem is now its displaying the address as below
Mr. ABC&lt;br&gt;POLAND
i tried using all possible options like htmlentities() , htmlspecialchars(), nl2br() but all is falling.
below is my code:
function main() {
$Relation_ID = & $this->Relation_ID;
global $db;
if ($Relation_ID!="") {
$Address =(htmlentities(GetRelAddress($Relation_ID)));
alert($Address);
aprint ('RelationInfo' , htmlentities($Address));
}
} // end
what should i do?
Thanks