I'm creating registration form, and want to before clicking on submit button to change <input>
's CSS properties when the passwords don't match (change background color).
if ($_POST["pass"] != $_POST["pass_again"]){
$message = "Passwords don't match";
echo ('
<script type="text/javascript">
document.getElementById("pass_again").background-color = "red";
</script>
');
}