Let $k$ be any field (may not be algebraically closed), $A$ and $B$ are two finitely-generated $k$-algebras of (Krull) dimension 1. Suppose $f : A \rightarrow B $ be a $k$-algebra homomorphism. I want to show that if $M$ is any maximal ideal in $B$, then the preimage $f^{-1}(M)$ is also a maximal ideal.
If $A$ is a domain, then it is clear since $(0)$ is a prime ideal in $A$. But the question is the case of $A$ contains zero divisors. Now, if $M$ is a maximal ideal in $B$, $P := f^{-1}(M) \in Spec(A)$. I want use the contradiction to show that $P$ is actually a maximal ideal. Now, $f$ induces a $k$-algebra monomorphism $\overline{f}: A/P \rightarrow B/M$. Because we assume that $A/P$ is not a field, it is a domain of dimension 1. And then, I have no more idea to deal the question.
Actually, I know that if $B/M$ is integral over $A/P$, then for every maximal $\mathfrak{P}$ in $B/M$, $\mathfrak{P} \cap (A/P)$ is also a maximal ideal in $A/P$. Is this information useful for solving this question?