If you need to get married to save yourself from sinful acts or temptations , you should try every thing possible to get married. Your parents should be told about your need either directly by you (very politely), or by persons whom they respect and trust from your family or friends.
Temporary marriage is another way to save yourself from sinning but you should be sure that it is according to the rules of Sharia. Permission of your parents is not compulsory if you are a male.
Meanwhile, it is advised to fast as many days as you can as it is mentioned in the Prophetic advice for the unmarried youth as a protection from sexual temptations.