daimon0482,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
.form[idd="$iduser"]:hover{ background-color: #FFFF00;}
.form:hover{ background-color: #FF00FF;}
</style>
</head>
<body>
<form>
<input type="text" class="form" idd="$iduser" value="$title">
<input type="text" class="form" idd="$iduser" value="$name">
<input type="text" class="form" idd="$iduser" value="$patronymic">
<input type="text" class="form" idd="$iduser" value="$surname">
</form>
<form>
<input type="text" class="form" value="$title">
<input type="text" class="form" value="$name">
<input type="text" class="form" value="$patronymic">
<input type="text" class="form" value="$surname">
</form>
</body>
</html>