White stuff (also called ‘discharge’) from the penis is a sign of infection. Usually, it occurs after sexual intercourse. You may get white cloudy discharge from your penis if you have a sexually transmitted disease (STD). Sometimes, this discharge from the penis is ‘foamy’.
Some discharge from the penis can be perfectly normal. This discharge is a lubricant that drips out during the erection. Usually, this stuff is clear, not cloudy.
If you notice a white discharge from the penis, then immediately consult a doctor. Your GP may prescribe antibiotics for treating STDs.