"Don't put any personal information online", our IT teacher said.
Our IT teacher warned us against putting personal information online.
Our IT teacher warned us not to put any personal information online.
But how about the following examples? I have seen "warn"can be followed by a that clause and I don't know if these examples could be right:
Our IT teacher warned us that we did not put any personal information online.
Our IT teacher warned us that we mustn't put any information online.