If we have commutative rings $R$ and $T$ and a homomorphism between them $\phi : R \to T$, then we define $Spec(\phi): Spec(T) \to Spec(R)$ by $p \mapsto \phi^{-1}(p)$.
There is then a theorem in the notes that I am reading that states that if $\phi$ is surjective, then $Spec(\phi)$ is injective.
My question is how $Spec(\phi)$ could ever not be injective, since that would mean that $\phi^{-1}(p)=\phi^{-1}(q)=s$, but $p \not= q$, so $\phi(s)=p \not= q = \phi(s)$.
Moreover I am also unsure as to how $Spec(\phi)$ is even well-defined in the case where $\phi$ is not surjective, or at least if not all prime ideals in $T$ are in $Im(\phi)$.
My other question is about a theorem that says that if $T$ is finite over $R$ then $Spec(\phi)$ has finite fibres, i.e. the set $Spec(\phi)^{-1}(\{p\})$ is finite, and again I fail to see how this set could have size greater than 1.
Any help would be appreciated.