0

it should display in the textarea "car1>>car2" instead it displays "car1>>car2"

try this code... it doesn't work. put your mouseover "test".

<?php
$sumz= "car1>>car2";

$textsearch = array('&amp;lt;','&amp;gt;');
$textreplace = array ('<','>');
$textareatext = "$sumz";


            echo "<div style='display:none;' id='1'>".str_replace($textsearch,$textreplace,htmlentities($textareatext))."</div>";
			echo "<table><tr><td onmouseover='Test(1);'>test </td></tr></table>";

echo "<br /><br /><textarea name='reply' id='reply' style='color: #000000; overflow: hidden; font-size:15px; height:52px; width:500px; text-align: left' readonly='readonly'  >test</textarea>";
?>

<script type="text/javascript">
function Test(number) {
var newtext = document.getElementById(number).innerHTML;
   document.getElementById('reply').value = newtext;
   }
</script>

any help?

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by MDanz
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.