I want to prove that if in a UFD every maximal ideal is principal then it is a PID.
My line of attack is: If it is a field i.e. it has no non-zero proper ideal, then we are done. Otherwise consider a non-zero proper ideal. Then, by Zorn's lemma, it is contained in some maximal ideal, hence contained in a principal ideal which is not the whole ring. Now we know that if in a UFD every proper ideal is contained a proper principal ideal, then it is a PID, hence we are done.
Is there any other solution without using Zorn's lemma?
To prove the result I will use two facts which can be easily find in internet (if not, just tell me):
Now we are going to prove:
Let $ \mathfrak{p} $ be a non-trivial prime ideal of $ R $ (the ideal $ \langle 0\rangle $ is principal and prime since we are working over integral domains). Since $ R $ is a UFD, we know that there exists some prime element $ p\in\mathfrak{p} $ (Kaplansky). But then $ \langle p\rangle\subseteq\mathfrak{p} $ which implies that $ \mathfrak{p}=\langle p\rangle$, as we assumed every prime ideal to be maximal. Since every non trivial prime ideal is now principal, we conclude that $ R $ is a PID.
Actually you can prove that the converse is also true, using the fact that every PID is a UFD. Then take a prime ideal which we know to be principal and suppose that it is not maximal, which leads you directly to a contradiction