From this code.
<form method="get">
<div align="center"><textarea name="post" ></textarea></div>
<div align="center"><input type="submit" value="Submit"></div>
</form>
<?
$aaa = $post;
$new_aaa=str_replace(array(
'a',
'b'
), array(
'A',
'B'
), $aaa);
?>
<textarea readonly="true" cols="100" rows="3" name="post" >
<? echo $new_aaa; ?>
</textarea>
</div>
If we write in the form of javascript to do here?
If you do not understand, it is to get value from textarea and then use the str_replace function as a type, but the output is A, help me write a little PHP I own one, but never wrote JS.
Sorry for bad English, I've used Google Translate.