Where's the category "Inline Styled Server-Side PHP Based XHTML JavaScript?"

Is it possible to make a script so that when a user pushes a button below a textarea, it sends it to a JavaScript that says "copy to the PHP $original. Copy to $correct. If (something) or (something) is found in this $original, assign that (something a value of (something else) in $correct. Display $original with a CSS style 'background-color: red,' NOT in a textarea. Display $correct with the style 'background-color: green?'