The Laws of Mixed Society (On having a boyfriend/girlfriend)

Rabbi Shlomo Aviner's article from "Be-Ahavah U-Be-Emunah" - Parashat Acharei Mot-Kedoshim 5769
Question: Why don’t our rabbis codify the laws of having a boyfriend/girlfriend? It happens anyway, so there’s no point in ignoring it. I’m not looking for loopholes, but if it exists, what are the halachot so that the connection will be kosher and pure? Speaking more broadly, mixed society is a reality as well, and it won’t help to prohibit it or deny it exists. The rabbis should define the laws so that such society is kosher and clean.
Answer: This is a really good idea, so let me quote from the Kitzur Shulchan Aruch of the illustrious Rav Shlomo Ganzfried (152:8-11). Yet the same laws can be found in the Shulchan Aruch itself (Orach Chaim 21) and Rambam (Issurei Biah 21).
1. Distancing Oneself: “One must distance oneself from women very very much.”
2. Signs of Friendship: “A man is forbidden to gesture to a woman with his hands or feet, or with his eyes.”
3. Levity: “One is forbidden to laugh with a woman or to be frivolous with her.”
4. Staring: “One is forbidden to gaze at her beauty.” “If one stares at a woman, even at her pinky finger, with intent to derive pleasure, his sin is very great.” “One is forbidden to gaze at her hair.”
5. Perfume: “One is forbidden to sniff an individual woman’s perfume, let alone when she is holding it in her hand or it is hanging from her.”
6. Clothing: “If a man knows a woman, he is forbidden to gaze at her colored clothing, even if she is not wearing them.”
7. Walking: “If one encounters a woman in the marketplace, one is forbidden to walk behind her. Rather he should run forward so that she remains to his side or behind him.”
8. Singing: “One is forbidden to hear a woman’s singing.”
9. Saying hi: “One doesn’t say hi to a woman at all. Even through her husband one is forbidden to send her regards. Therefore, when one writes a letter to one’s friend, one is forbidden to write, ‘Regards to the wife’. But one is allowed to ask her husband or someone else how she is doing. One is likewise allowed to write his friend, ‘Tell me how your wife is doing.’”
10. A Husband and Wife’s Comportment in Public (not related to our topic, but good to mention at this opportunity): “One should show no woman, not even his own wife, any affection, in the presence of others.”
If we keep all these laws, we will establish a good, reputable society, and we will even be privileged to establish happy, reputable, Jewish homes.